X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=0f61061675fdca2c8bfe7633706b2cef2875ad9d;hp=1473a05770b03a4b4369a482a8b3af630ef00531;hb=03983d36c31cf7be597e421be8d8a0f167064f38;hpb=80e002e524071cb32d020e222d4aa28331c305e3 diff --git a/grml-debootstrap b/grml-debootstrap index 1473a05..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 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 @@ -57,6 +57,14 @@ while [ "$#" -gt "0" ] ; do shift GROOT=$1 ;; + --release) + shift + RELEASE=$1 + ;; + -p|--mntpoint) + shift + MNTPOINT=$1 + ;; -m|--mirror) shift MIRROR=$1 @@ -295,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 }