summaryrefslogtreecommitdiff
path: root/config/binary_local-hooks
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-02-17 00:30:53 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2012-02-17 00:30:53 +0100
commitd3816073d3f110a57cd75f30d47bd06fcb94f601 (patch)
tree4bfeb66d9a1574093ad8ae0df4022f89a7114605 /config/binary_local-hooks
parent24fbdd0aa2dddd72016a0608ba23b178dd995509 (diff)
downloadkanotix-d3816073d3f110a57cd75f30d47bd06fcb94f601.zip
kanotix-d3816073d3f110a57cd75f30d47bd06fcb94f601.tar.gz
added hybrid-ISO feature: embedded partiton with ISO offset
Diffstat (limited to 'config/binary_local-hooks')
-rwxr-xr-xconfig/binary_local-hooks/mkembeddediso21
1 files changed, 21 insertions, 0 deletions
diff --git a/config/binary_local-hooks/mkembeddediso b/config/binary_local-hooks/mkembeddediso
new file mode 100755
index 0000000..c2e4ce9
--- /dev/null
+++ b/config/binary_local-hooks/mkembeddediso
@@ -0,0 +1,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