Merge remote-tracking branch 'origin/github/pr/145'
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 44-grub
1 #!/bin/bash
2 # Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/44-grub
3 # Purpose:       build grub core.img to use outside
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2 or any later version.
7 ################################################################################
8
9 set -e
10 set -u
11
12 $ROOTCMD mkdir -p /boot/grub
13
14 if ifclass ARM64 ; then
15   echo "Skipping execution of script on ARM64"
16   exit 0
17 fi
18
19 # generate /boot/grub/core.img
20 $ROOTCMD grub-mkimage \
21   -d /usr/lib/grub/i386-pc \
22   -p /boot/grub \
23   -o /boot/grub/core.img \
24   biosdisk iso9660 \
25   --format=i386-pc
26
27 ## END OF FILE #################################################################
28 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2