Skip to content

Instantly share code, notes, and snippets.

@SupremeMortal
Last active February 15, 2024 22:56
Show Gist options
  • Save SupremeMortal/54f7960ab91a03e10565f42344ea1c5f to your computer and use it in GitHub Desktop.
Save SupremeMortal/54f7960ab91a03e10565f42344ea1c5f to your computer and use it in GitHub Desktop.
A bash script to create a custom HPE baseline ISO by unpacking an existing SPP and adding the files to the `packages/` directory
#!/bin/bash
# Requires packages on Fedora: xorriso, syslinux and genisoimage
# $1: Name of ISO
# $2: Directory of extracted SPP with your added files
xorriso -as mkisofs -J -J -joliet-long -cache-inodes -R -V "$1" \
-o "$2/$1.iso" \
-isohybrid-mbr "/usr/share/syslinux/isohdpfx.bin" \
-b "system/isolinux.bin" \
-c "boot.catalog" \
-no-emul-boot \
-boot-load-size 4 \
-boot-info-table \
-eltorito-alt-boot \
-e "efi/boot/efi.img" \
-no-emul-boot \
-isohybrid-gpt-basdat \
-isohybrid-apm-hfsplus \
"$3"
@bra-fsn
Copy link

bra-fsn commented Feb 15, 2024

Thanks, it was useful. Command here:

xorriso -as mkisofs -J -J -joliet-long -cache-inodes -R -V "SPP" -o output.iso -isohybrid-mbr "/usr/lib/ISOLINUX/isohdpfx.bin" -b "system/isolinux.bin" -c "boot.catalog" -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e "efi/boot/efi.img" -no-emul-boot -isohybrid-gpt-basdat -isohybrid-apm-hfsplus iso_dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment