Skip to content

Commit

Permalink
Merge pull request #7724 from inverse-inc/fix/7599
Browse files Browse the repository at this point in the history
ISO: update path to source ISO and make it EFI bootable
  • Loading branch information
nqb authored Jun 27, 2023
2 parents 39303c0 + bbce5c4 commit 9c27836
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/debian-installer/create-debian-installer-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o nounset -o pipefail -o errexit
cd /debian-installer

apt update
apt install xorriso wget cpio genisoimage -yqq
apt install xorriso wget cpio -yqq

./create-debian-installer.sh

9 changes: 5 additions & 4 deletions ci/debian-installer/create-debian-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ function clean() {
ISO_IN=${ISO_IN:-debian-11.7.0-amd64-netinst.iso}
ISO_OUT=${ISO_OUT:-packetfence-debian-installer.iso}

trap clean EXIT

if ! [ -f $ISO_IN ]; then
wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/$ISO_IN
wget https://cdimage.debian.org/cdimage/archive/latest-oldstable/amd64/iso-cd/$ISO_IN
fi

rm -fr isofiles/
Expand Down Expand Up @@ -41,6 +43,5 @@ find -follow -type f ! -name md5sum.txt -print0 | xargs -0 md5sum > md5sum.txt |
chmod -w md5sum.txt
cd ..

genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o $ISO_OUT isofiles

clean
# occurences of -no-emul-boot are mandatory
xorriso -as mkisofs -r -J -joliet-long -b isolinux/isolinux.bin -c isolinux/boot.cat -boot-load-size 4 -boot-info-table -no-emul-boot -o $ISO_OUT -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot -isohybrid-gpt-basdat -isohybrid-apm-hfsplus -V "Packetfence $PF_RELEASE" isofiles

0 comments on commit 9c27836

Please sign in to comment.