blob: 4a600e5df1d05e96731c65b9f459c229a6b76c93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
# generate space-file (binary/boot.isohybrid) for isohybrid-acritox
[ "${LB_BINARY_IMAGES}" = "iso-hybrid" ] || exit 0
case "$LB_BOOTLOADER" in
grub2|burg)
;;
*)
exit 0
;;
esac
size=$((3*1024)) # 3MB
chroot chroot grub-mkimage -d /usr/lib/grub/i386-pc -o "/boot.isohybrid" -O i386-pc biosdisk iso9660
perl -e "print '<ACRITOX-HYBRID>'x(64*$size);" > binary/boot.isohybrid
dd if=chroot/boot.isohybrid of=binary/boot.isohybrid bs=1M conv=notrunc
rm -f chroot/boot.isohybrid
|