X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=chroot-script;h=cea2f7d26da762e8d0e927aa4eccf210af4c27fd;hb=e1bac354b542d9f6fed10d26a051cd7bd3b86d33;hp=caafeafbda2f11465f402cb49f8c241f12faddf0;hpb=5e0317281cc3ed5abad668643843ca346a827ad8;p=grml-debootstrap.git diff --git a/chroot-script b/chroot-script old mode 100644 new mode 100755 index caafeaf..cea2f7d --- a/chroot-script +++ b/chroot-script @@ -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: Sam Apr 28 20:19:58 CEST 2007 [mika] +# Latest change: Son Dez 16 16:30:31 CET 2007 [mika] ################################################################################ set -e # exit on any error @@ -45,8 +45,13 @@ stage() { # define chroot mirror {{{ chrootmirror() { - if [ -n "$CHROOTMIRROR" ] ; then - echo "deb $CHROOTMIRROR $RELEASE main contrib non-free" > /etc/apt/sources.list + if [ -n "$ISO" ] ; then + echo "deb $ISO $RELEASE main contrib" > /etc/apt/sources.list + [ -n "$CHROOTMIRROR" ] && echo "deb $CHROOTMIRROR $RELEASE main contrib non-free" >> /etc/apt/sources.list + else + if [ -n "$CHROOTMIRROR" ] ; then + echo "deb $CHROOTMIRROR $RELEASE main contrib non-free" > /etc/apt/sources.list + fi fi } # }}} @@ -253,6 +258,7 @@ passwords() { echo "Setting password for user root:" set +e # do not exit if passwd returns error due to missmatching passwords passwd + until passwd; do echo "Please try again to set the password:" ; done echo "" set -e # restore default behaviour again fi