summaryrefslogtreecommitdiff
path: root/config/binary_local-hooks/mkembeddediso
blob: c2e4ce9fa8292b3b3334d8ae3285ae64f62f18b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
# mkembeddediso - written by Andreas Loibl <andreas@andreas-loibl.de>
# 
# Generate space on the ISO for an offset copy of the ISO file table

case "$LB_BOOTLOADER" in
grub2|burg)
	;;
*)
	exit 0
	;;
esac


img=binary/boot.iso.img
[ "$1" ] && img="$1"
rm -f "$img"

dd if=/dev/zero bs=512k count=1 of="$img" >/dev/null 2>/dev/null

exit 0