Last active
February 15, 2024 22:56
-
-
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
This file contains 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
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, it was useful. Command here: