X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=3cd219608f806944f75fb7510ca5b7176eab6df7;hp=caafeafbda2f11465f402cb49f8c241f12faddf0;hb=e495c534be193f4f8d96d9f2d6bf40289b2c1c37;hpb=5e0317281cc3ed5abad668643843ca346a827ad8 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 } # }}}