X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=e551919f75a6e8ea61e1db27b342cee7c6ba9a9b;hp=87166bf01d8c0d1e26f7eebb58c14fd0c9e4e02a;hb=d480b1586185e32df5e8a44aa8b3d22ec80e1a67;hpb=90f264b5ef5d4f35c8b2bbf9e2a1ce0b75e830ef diff --git a/grml-debootstrap b/grml-debootstrap index 87166bf..e551919 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 17 23:00:30 CET 2006 [mika] +# Latest change: Fre Nov 17 23:44:49 CET 2006 [mika] ################################################################################ # http://www.debian.org/releases/stable/i386/apcs04.html.en @@ -18,7 +18,7 @@ VERSION='0.2' case $* in -h*|--h*) einfo "$0 - wrapper around debootstrap for installing plain Debian via grml" - einfo "Configure via /etc/debootstrap/config and invoke $0 afterwards." + einfo "Adjust /etc/debootstrap/config and invoke $0 afterwards." eend 0 exit 0 ;; @@ -74,6 +74,7 @@ case $TARGET in MNTPOINT="$TARGET" MKFS='' TUNE2FS='' + FSCK='' GRUB='' GROOT='' ;; @@ -82,12 +83,11 @@ esac # user should recheck his configuration einfo "$0 - Please recheck configuration before execution:" echo " - Target partition: $TARGET - Mount-point: $MNTPOINT - Install grub to: $GROOT / $GRUB [if empty grub will not be installed] - - Important! Continuing will delete all data from ${TARGET}! -" + Target: $TARGET" + case "$MNTPOINT" in "$TARGET") ;; *) echo " Mount-point: $MNTPOINT" ;; esac + [ -n "$GRUB" ] && echo " Install grub to: $GROOT / $GRUB" + case "$MNTPOINT" in "$TARGET") ;; *) echo " Important! Continuing will delete all data from ${TARGET}!" ;; esac + echo einfon "Is this ok for you? [y/N] " read a