updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / grub2-efi-bzr / grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch
bloba2820b3655fd92ef1bcb42d843d064a113ee8bbd
1 diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
2 index c717558..f70fb02 100644
3 --- a/util/grub-mkconfig.in
4 +++ b/util/grub-mkconfig.in
5 @@ -40,7 +40,9 @@ self=`basename $0`
6 grub_probe="${sbindir}/`echo grub-probe | sed "${transform}"`"
7 grub_script_check="${bindir}/`echo grub-script-check | sed "${transform}"`"
9 -GRUB_PREFIX=`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"`
10 +if test -z "${GRUB_PREFIX}"; then
11 + GRUB_PREFIX=`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"`
12 +fi
14 # Usage: usage
15 # Print the usage.