SRM (System-Rescue-Modules)

最後更新: 2019-02-26

介紹

SRM Modules (System-Rescue-Modules)

which are squashfs filesystems that contain extra files that are part of the system.

SRM <- extra squashfs (a backstore)

This feature is not supported on SystemRescueCd 6.x

 * SRM and MD5 files of the module have to be put in the same location as sysrcd.dat
 * load all SRM files in the alphabetical order (CDRom, USB Stick or Hard-disk)

Boot options:

    loadsrm=off:                                     Do not load any SRM module
    loadsrm=*.srm:                                Load all SRM modules (works only for block devices)
    loadsrm=module1.srm,module2.srm:  Load explicit files (required for HTTP/NFS boot)

 


Adding SRM modules to the ISO Image from Linux

 

a) Mount the ISO image to a directory such as /media

mount -o loop,ro /var/tmp/systemrescuecd-x86-x.y.z.iso /media

        OR

boot with sysrcd

b) Copy all files from the mount point to a temp directory

cp -a /media /var/tmp/sysrcd

        or

mount /dev/sdaN /mnt/backup

cp -a /livemnt/boot /mnt/backup/sysrcd

c) Copy the extra SRM module files (or make other changes)

cp -a ~/mymodule.srm /var/tmp/sysrcd/mymodule.srm

md5sum /var/tmp/sysrcd/mymodule.srm > /var/tmp/sysrcd/mymodule.md5

d) Recreate the ISO Image

xorriso -as mkisofs -J -rock \
           -N -D \
           -b isolinux/isolinux.bin -c isolinux/boot.cat \
           -no-emul-boot -boot-load-size 4 -boot-info-table \
           -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
           -V MyRescueCd -o /mnt/backup/sysrcd-custom.iso /mnt/backup/sysrcd
 


mksquashfs

 

mksquashfs source1 source2 ...  dest [options]

-comp <comp>

Compressors available: lzo, xz (default)