X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=d9642572e6cd7ae92bd91cb47b20dfa2500cf4dd;hp=cd96f1ab2136645b2751b7695bc46a33845989b1;hb=c454134fe106e0643e28a306366e00866acf5890;hpb=be87c6d1ae33ce0792222b0ed438496ae9ae3b53 diff --git a/grml-debootstrap b/grml-debootstrap index cd96f1a..d964257 100644 --- 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: Fre Nov 03 21:35:09 CET 2006 [mika] +# Latest change: Mon Nov 06 12:51:22 CET 2006 [mika] ################################################################################ # http://www.debian.org/releases/stable/i386/apcs04.html.en @@ -124,6 +124,14 @@ eend $? # rm -rf $MNTPOINT/etc/debootstrap/ # eend $? +if [ -z "$MBR" ] ; then + echo "Notice: \$MBR not set, will not install grub therefor." +else + einfo "Installing grub on ${MBR}:" + grub-install --root-directory="$MNTPOINT" "(${MBR})" + eend $? +fi + einfo "Unmount $MNTPOINT" umount $MNTPOINT eend $?