X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=0f61061675fdca2c8bfe7633706b2cef2875ad9d;hp=7ca8a70c74e9192be2c00781f4ff5bf46aee808a;hb=03983d36c31cf7be597e421be8d8a0f167064f38;hpb=450027d331f660aa033b1d01226dd7f5be1b2e76 diff --git a/grml-debootstrap b/grml-debootstrap index 7ca8a70..0f61061 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # 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 }