diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-06-28 21:32:10 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-06-28 21:32:10 -0300 |
commit | 64cf361dd1f757ccc31ced3482efe88c7aaaccc5 (patch) | |
tree | 114be9a3cebf18c3be30b171ec76fd6405c359f6 /libre-testing/grub/grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch | |
parent | 674fdec643af42d0a690b5296da455b60253ea05 (diff) | |
download | abslibre-64cf361dd1f757ccc31ced3482efe88c7aaaccc5.tar.gz abslibre-64cf361dd1f757ccc31ced3482efe88c7aaaccc5.tar.bz2 abslibre-64cf361dd1f757ccc31ced3482efe88c7aaaccc5.zip |
grub-2.00-1: new package
Diffstat (limited to 'libre-testing/grub/grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch')
-rw-r--r-- | libre-testing/grub/grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libre-testing/grub/grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch b/libre-testing/grub/grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch new file mode 100644 index 000000000..e1de26859 --- /dev/null +++ b/libre-testing/grub/grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch @@ -0,0 +1,15 @@ +diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in +index 859c2e8..c4391dc 100644 +--- a/util/grub-mkconfig.in ++++ b/util/grub-mkconfig.in +@@ -40,7 +40,9 @@ self=`basename $0` + grub_probe="${sbindir}/`echo grub-probe | sed "${transform}"`" + grub_script_check="${bindir}/`echo grub-script-check | sed "${transform}"`" + +-GRUB_PREFIX=`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"` ++if test -z "${GRUB_PREFIX}"; then ++ GRUB_PREFIX=`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"` ++fi + + . "${datadir}/@PACKAGE@/grub-mkconfig_lib" + |