# 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 13:53:27 CEST 2007 [mika]
+# Latest change: Mon Apr 16 15:42:34 CEST 2007 [mika]
################################################################################
# http://www.debian.org/releases/stable/i386/index.html.en
shift
GROOT=$1
;;
+ --release)
+ shift
+ RELEASE=$1
+ ;;
+ -p|--mntpoint)
+ shift
+ MNTPOINT=$1
+ ;;
-m|--mirror)
shift
MIRROR=$1
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
}