ISO-repository/build/amd64.sh

17 lines
836 B
Bash
Raw Permalink Normal View History

2024-06-25 13:52:53 +00:00
#!/bin/sh
2024-08-04 21:18:25 +00:00
curl -LO https://gemmei.ftp.acc.umu.se/mirror/cdimage/archive/12.5.0/amd64/iso-cd/debian-12.5.0-amd64-netinst.iso
2024-06-25 13:52:53 +00:00
xorriso -osirrox on -indev debian-12.5.0-amd64-netinst.iso -extract / ./isofiles
chmod +w -R isofiles/
gunzip ./isofiles/install.amd/initrd.gz
echo preseed.cfg | cpio -H newc -o -A -F isofiles/install.amd/initrd
cp bootloader-configs/*.cfg isofiles/isolinux
gzip isofiles/install.amd/initrd
cd isofiles
# Execute the md5sum generation in a separated shell instance, because it returns a
# warning (file system loop) that makes the CI job error out
sh -c "find -follow -type f ! -name md5sum.txt -print0 | xargs -0 md5sum > md5sum.txt"
cd ..
chmod -w -R isofiles/
2024-08-04 21:18:25 +00:00
genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o halis-12.5.0-amd64.iso isofiles