updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / grub2-bios-bzr / grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch
blob90c2b3cc6859588098cb1b4ddb0af032d4f41170
1 diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
2 index c408ccc..5be8f78 100644
3 --- a/util/grub-mkconfig.in
4 +++ b/util/grub-mkconfig.in
5 @@ -39,7 +39,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.