Created
February 8, 2021 20:26
-
-
Save ekussa/177843a18aadf49cce55270dc4862283 to your computer and use it in GitHub Desktop.
Unpack and repack iso from folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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