Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Directly invoke /usr/sbin/grub-install in grml-debootstrap
authorMichael Prokop <mika@grml.org>
Mon Apr 16 15:42:49 2007 +0200 (19 months ago)
changeset 1255aebb3dc1036
manifest5aebb3dc1036
parent 124fddbe2042369
child 126d9e3a107f946
Directly invoke /usr/sbin/grub-install in grml-debootstrap
grml-debootstrap
--- a/grml-debootstrap Mon Apr 16 15:29:18 2007 +0200
+++ b/grml-debootstrap Mon Apr 16 15:42:49 2007 +0200
@@ -4,7 +4,7 @@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Mon Apr 16 14:14:54 CEST 2007 [mika]
+# Latest change: Mon Apr 16 15:42:34 CEST 2007 [mika]
################################################################################
# http://www.debian.org/releases/stable/i386/index.html.en
@@ -303,7 +303,8 @@ grub_install() {
echo "Notice: \$GRUB or \$GROOT not defined, will not install grub therefor."
else
einfo "Installing grub on ${GRUB}:"
- grub-install --root-directory="$MNTPOINT" "(${GRUB})"
+ [ -x /usr/sbin/grub-install ] && GRUBINSTALL=/usr/sbin/grub-install || GRUBINSTALL=/sbin/grub-install
+ $GRUBINSTALL --root-directory="$MNTPOINT" "(${GRUB})"
eend $?
fi
}