Use grub from target
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 44-grub
diff --git a/etc/grml/fai/config/scripts/GRMLBASE/44-grub b/etc/grml/fai/config/scripts/GRMLBASE/44-grub
new file mode 100755 (executable)
index 0000000..c96b3e3
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+# Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/44-grub
+# Purpose:       build grub core.img to use outside
+# Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
+# Bug-Reports:   see http://grml.org/bugs/
+# License:       This file is licensed under the GPL v2 or any later version.
+################################################################################
+
+set -e
+set -u
+
+$ROOTCMD grub-mkimage -d /usr/lib/grub/*-pc \
+  -o /boot/grub/core.img \
+  biosdisk iso9660 \
+  --format=i386-pc
+
+## END OF FILE #################################################################
+# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2