X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=277c3ac79bb6fc89280ba2c3d83c581b87c1a2f8;hp=f1b0afffc471c6640fb1d62fb81c14b0670086af;hb=139f1a82802a0cbef7f231b0fae51f9357a7f518;hpb=828061e11237bba165023196c1def7f361d7cbcf diff --git a/grml-debootstrap b/grml-debootstrap index f1b0aff..277c3ac 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 20:31:21 CEST 2007 [mika] +# Latest change: Mon Apr 16 20:39:13 CEST 2007 [mika] ################################################################################ # http://www.debian.org/releases/stable/i386/index.html.en @@ -41,16 +41,17 @@ usage() { echo einfo "Valid options:" echo " - -h|--help Print this usage information and exit. - -v|--version Show summary of options and exit. - - -t|--target Target partition (/dev/...) or directory. - -r|--release Specify release of new Debian system. Supported relases: sarge, etch, lenny and sid. - -m|--mirror Specify mirror which should be used for apt-get/aptitude. - -p|--mntpoint Specify mountpoint that should be used for mounting the target system. - --groot Specify root device for usage in grub (corresponds with \$TARGET). - --grub Where do you want to install grub to? Use grub syntax for specifying. - --password Use specified password as password for user root. Use with caution. + -h|--help Print this usage information and exit. + -v|--version Show summary of options and exit. + + -t|--target Target partition (/dev/...) or directory. + -r|--release Specify release of new Debian system. Supported relases: sarge, etch, lenny and sid. + -m|--mirror Specify mirror which should be used for apt-get/aptitude. + -p|--mntpoint Specify mountpoint that should be used for mounting the target system. + --groot Specify root device for usage in grub (corresponds with \$TARGET). + --grub Where do you want to install grub to? Use grub syntax for specifying. + --password Use specified password as password for user root. Use with caution. + --boot_append Add specified appendline to kernel whilst booting " } @@ -226,12 +227,12 @@ if [ -n "$AUTOINSTALL" ] ; then fi else # if not running automatic installation display configuration and prompt for execution: einfo "$0 - Please recheck configuration before execution:" - echo " - Target: $TARGET" + echo + echo " Target: $TARGET" case "$MNTPOINT" in "$TARGET") ;; *) echo " Mount-point: $MNTPOINT" ;; esac [ -n "$GRUB" ] && echo " Install grub to: $GROOT / $GRUB" [ -n "$MIRROR" ] && echo " Using mirror: $MIRROR" - case "$MNTPOINT" in "$TARGET") ;; *) echo " Important! Continuing will delete all data from ${TARGET}!" ;; esac + 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 @@ -308,6 +309,8 @@ preparechroot() { cp /etc/debootstrap/packages $MNTPOINT/etc/debootstrap/packages cp /etc/debootstrap/variables $MNTPOINT/etc/debootstrap/variables + cp -a /etc/debootstrap/extrapackages/ $MNTPOINT/etc/debootstrap/ + # make sure we can access network [relevant for cdebootstrap] [ -f "$MNTPOINT/etc/resolv.conf" ] || cp /etc/resolv.conf $MNTPOINT/etc/resolv.conf @@ -387,7 +390,13 @@ done echo done > $STAGES/grml-debootstrap # }}} - einfo "Finished execution of $0 - enjoy your Debian system." ; eend 0 +if [ -n "$AUTOINSTALL" ] ; then + dialog --title "$0" --msgbox \ + "Finished execution of ${0}. +Enjoy your Debian system." 6 60 +else + einfo "Finished execution of $0 - enjoy your Debian system." ; eend 0 +fi ## END OF FILE ################################################################# # vim: ai tw=100 expandtab foldmethod=marker