X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=3cd219608f806944f75fb7510ca5b7176eab6df7;hp=caafeafbda2f11465f402cb49f8c241f12faddf0;hb=41260b2bb817765667a4d816d56306574f5ca691;hpb=f7d2c901555cf93ced53c954bbbf61930e07e18e diff --git a/chroot-script b/chroot-script old mode 100644 new mode 100755 index caafeaf..3cd2196 --- a/chroot-script +++ b/chroot-script @@ -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 } # }}}