Skip to content

Instantly share code, notes, and snippets.

@ekussa
Created February 8, 2021 20:26
Show Gist options
  • Save ekussa/177843a18aadf49cce55270dc4862283 to your computer and use it in GitHub Desktop.
Save ekussa/177843a18aadf49cce55270dc4862283 to your computer and use it in GitHub Desktop.
Unpack and repack iso from folder
sudo rmdir /tmp/iso
mkdir /tmp/iso
cd /tmp/iso
sudo mount -t iso9660 -o loop oldIso-xyz.iso /mnt/
cd /mnt
sudo tar cf - . | (cd /tmp/iso; tar xfp -)
sudo xorriso -as mkisofs \
-U -A "volumeName" -V "volumeName" \
-volset "volumeName" -J -joliet-long -r -v -T \
-o newIso-xyz.iso \
-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 .
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment