summaryrefslogtreecommitdiff
path: root/config/binary_local-hooks/isohybrid-acritox
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-03-08 22:19:39 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2012-03-08 22:19:39 +0100
commit7a9152c0ae2d26d1445f1dc20fc2cc708d2432c2 (patch)
treed541118589556dd11e4b149c8a3286b4d1e53cd4 /config/binary_local-hooks/isohybrid-acritox
parentc0186754062c6c8380ce5a17a1cdc32092d504eb (diff)
downloadkanotix-7a9152c0ae2d26d1445f1dc20fc2cc708d2432c2.zip
kanotix-7a9152c0ae2d26d1445f1dc20fc2cc708d2432c2.tar.gz
updated isohybrid-acritox
Diffstat (limited to 'config/binary_local-hooks/isohybrid-acritox')
-rwxr-xr-xconfig/binary_local-hooks/isohybrid-acritox7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/binary_local-hooks/isohybrid-acritox b/config/binary_local-hooks/isohybrid-acritox
index e7c2931..4a600e5 100755
--- a/config/binary_local-hooks/isohybrid-acritox
+++ b/config/binary_local-hooks/isohybrid-acritox
@@ -1,5 +1,5 @@
#!/bin/bash
-# generate binary/boot.isohybrid for isohybrid-acritox
+# generate space-file (binary/boot.isohybrid) for isohybrid-acritox
[ "${LB_BINARY_IMAGES}" = "iso-hybrid" ] || exit 0
@@ -11,8 +11,9 @@ grub2|burg)
;;
esac
+size=$((3*1024)) # 3MB
chroot chroot grub-mkimage -d /usr/lib/grub/i386-pc -o "/boot.isohybrid" -O i386-pc biosdisk iso9660
-for i in $(seq 64); do echo -n "ACRITOX!"; done > binary/boot.isohybrid
-cat chroot/boot.isohybrid >> binary/boot.isohybrid
+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