Advertisement
v1ral_ITS

xorriso [ terminal cmd iso create ]

Apr 28th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.35 KB | None | 0 0
  1. ##############################################################################
  2. #                                                                            #
  3. # Project page: http://www.system-rescue-cd.org/                                    #
  4. # (C) 2013 Francois Dupoux                                                   #
  5. #                                                                            #
  6. ###############################################################################
  7.  
  8. You may want to modify the CDRom version of SystemRescueCd (ISO image file).
  9. This can be useful in order to add your own script or SRM files
  10. (SystemRescueCd modules: http://www.system-rescue-cd.org/Modules). Module provide
  11. support for extra programs which are not included in the standard version.
  12.  
  13. There are two ways to customize the ISO image of SystemRescueCd:
  14. *) Windows users can use the SystemRescueCd installer for Windows
  15. *) Linux users can recreate the ISO image using xorriso
  16.    A static xorriso can be found in the CDRom/ISO image in usb_inst
  17.  
  18. In both cases the contents of the original CDRom/ISO will be copied to a
  19. temp directory on the hard disk. You can then make your own changes in
  20. this directory and the new ISO image file has to be recreated, using
  21. either the SystemRescueCd installer on Windows or xorriso on Linux.
  22.  
  23. *) Customization of the ISO image on Windows
  24.    Download the latest version of the SystemRescueCd installer for Windows
  25.    and just follow the instructions
  26.  
  27. *) Customization of the ISO image on Linux
  28.    a) Mount the ISO image to a directory such as /media
  29.       # mount -o loop,ro /var/tmp/systemrescuecd-x86-x.y.z.iso /media
  30.    b) Copy all files from the mount point to a temp directory
  31.       # cp -a /media /var/tmp/sysrcd
  32.    c) Copy the extra SRM module files (or make other changes)
  33.       # cp -a ~/mymodule.srm /var/tmp/sysrcd/mymodule.srm
  34.       # md5sum /var/tmp/sysrcd/mymodule.srm > /var/tmp/sysrcd/mymodule.md5
  35.    d) Recreate the ISO Image
  36.       # xorriso -as mkisofs -joliet -rock \
  37.                 -omit-version-number -disable-deep-relocation \
  38.                 -b isolinux/isolinux.bin -c isolinux/boot.cat \
  39.                 -no-emul-boot -boot-load-size 4 -boot-info-table \
  40.                 -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
  41.                 -volid MyRescueCd -o /var/tmp/sysrcd-custom.iso /var/tmp/sysrcd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement