* util/grub-install.in: Don't source grub-mkconfig_lib until after

processing arguments (otherwise help2man fails when GRUB has not yet
been installed).
This commit is contained in:
Colin Watson 2011-07-26 11:59:47 +01:00
parent 41aa28ea2a
commit 303b6246a3
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2011-07-26 Colin Watson <cjwatson@ubuntu.com>
* util/grub-install.in: Don't source grub-mkconfig_lib until after
processing arguments (otherwise help2man fails when GRUB has not yet
been installed).
2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
New script grub-mkstandalone.

View file

@ -59,8 +59,6 @@ update_nvram=yes
removable=no
efi_quiet=
. ${libdir}/@PACKAGE@/grub-mkconfig_lib
# Get GRUB_DISTRIBUTOR.
if test -f "${sysconfdir}/default/grub" ; then
. "${sysconfdir}/default/grub"
@ -265,6 +263,8 @@ do
esac
done
. ${libdir}/@PACKAGE@/grub-mkconfig_lib
if test "x$install_device" = x && ([ "${target_cpu}-${platform}" = "i386-pc" ] \
|| [ "${target_cpu}-${platform}" = "sparc64-ieee1275" ]); then
echo "install_device not specified." 1>&2