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"`