From: Michael Prokop Date: Fri, 21 Oct 2016 11:47:30 +0000 (+0200) Subject: GRMLBASE/44-grub: explicitely set grub-mkimage's prefix path X-Git-Tag: v0.28.0~24 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=b17040d06f1447eeca0b72f736e51582999bf601 GRMLBASE/44-grub: explicitely set grub-mkimage's prefix path At least with grub 2.02~beta3-1 the prefix is mandatory: | Usage: grub-mkimage [OPTION...] [OPTION]... [MODULES] | Try 'grub-mkimage --help' or 'grub-mkimage --usage' for more information. | Prefix not specified (use the -p option). Set it to what's the default e.g. in grub 2.02~beta2-36 as documented in its manpage: | -p, --prefix=DIR | set prefix directory [default=/boot/grub] Related grub git commit message: | commit 1440b7ebae47e1cb710e920bec9d88c4d75ff432 | Author: Andrey Borzenkov | Date: Sat Jan 25 19:54:51 2014 +0400 | | do not set default prefix in grub-mkimage | | Default prefix is likely wrong on Unix and completely wrong on Windows. | Let caller set it explicitly to avoid any ambiguity. Thanks: Darshaka Pathirana --- diff --git a/etc/grml/fai/config/scripts/GRMLBASE/44-grub b/etc/grml/fai/config/scripts/GRMLBASE/44-grub index 0aac0f1..5caa73a 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/44-grub +++ b/etc/grml/fai/config/scripts/GRMLBASE/44-grub @@ -12,6 +12,7 @@ set -u $ROOTCMD mkdir -p /boot/grub $ROOTCMD grub-mkimage -d /usr/lib/grub/i386-pc \ + -p /boot/grub \ -o /boot/grub/core.img \ biosdisk iso9660 \ --format=i386-pc