From 7b236c1dc006ccc5506ad7de31443090fe863922 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 16 Nov 2022 12:23:44 +0100 Subject: [PATCH] ISO-Repack: fixed layout --- ISO-Repack.md | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/ISO-Repack.md b/ISO-Repack.md index f498146..70d8dce 100644 --- a/ISO-Repack.md +++ b/ISO-Repack.md @@ -7,27 +7,29 @@ mkisofs xorriso isohybrid ## Editing ISO image -create workspace -`mkdir /tmp/custom_iso` -Mount image and extract it since it is read only -`mount -t iso9660 -o loop ~/original.iso /mnt/` -`tar cf - /mnt/. | (cd /tmp/custom_iso; tar xfp -)` -You can now modify the files for editing the bootloader config for example! +Create workspace +`mkdir /tmp/custom_iso` +Mount image and extract it since it is read only +``` +mount -t iso9660 -o loop ~/original.iso /mnt/` +tar cf - /mnt/. | (cd /tmp/custom_iso; tar xfp -) +``` +You can now modify the files for editing the bootloader config for example! ## Back into an iso ### Legacy only -Rebuild iso with mkisofs -`mkisofs -o output.iso -b syslinux/isolinux.bin -c syslinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V "Custom ISO" /tmp/custom_iso` -Bless it with isohybrid -`isohybrid output.iso` +Rebuild iso with mkisofs +`mkisofs -o output.iso -b syslinux/isolinux.bin -c syslinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V "Custom ISO" /tmp/custom_iso` +Bless it with isohybrid +`isohybrid output.iso` ### EFI and Legacy -Rebuild iso with mkisofs -`mkisofs -o output.iso -b syslinux/isolinux.bin -J -R -l -c syslinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot -graft-points -V "Custom ISO" /tmp/custom_iso` -Bless it with isohybrid +Rebuild iso with mkisofs +`mkisofs -o output.iso -b syslinux/isolinux.bin -J -R -l -c syslinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot -graft-points -V "Custom ISO" /tmp/custom_iso` +Bless it with isohybrid `isohybrid --uefi output.iso` ### Sources -https://gist.github.com/AkdM/2cd3766236582ed0263920d42c359e0f -https://tuxfixer.com/mount-modify-edit-repack-create-uefi-iso-including-kickstart-file/ \ No newline at end of file +https://gist.github.com/AkdM/2cd3766236582ed0263920d42c359e0f +https://tuxfixer.com/mount-modify-edit-repack-create-uefi-iso-including-kickstart-file/ \ No newline at end of file