X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=98e7b14e4ffc065497a93caf258a09ac788f5388;hp=7caf4dded5eb7ff9a316d016bb11502ceb123e3f;hb=10690a93c8cfddf92ee4d6ab17015b293b0e3709;hpb=ab9101c1aa74672b653af1f483552c832a6fa780 diff --git a/chroot-script b/chroot-script index 7caf4dd..98e7b14 100755 --- a/chroot-script +++ b/chroot-script @@ -18,9 +18,15 @@ # use aptitude only if it's available if [ -x /usr/bin/aptitude ] ; then - APTINSTALL="aptitude -y --without-recommends install $DPKG_OPTIONS" APTUPDATE='aptitude update' - APTUPGRADE='aptitude -y safe-upgrade' + # Debian ISOs do not contain signed Release files + if [ -n "$ISO" ] ; then + APTINSTALL="aptitude -y --allow-untrusted --without-recommends install $DPKG_OPTIONS" + APTUPGRADE='aptitude -y --allow-untrusted safe-upgrade' + else + APTINSTALL="aptitude -y --without-recommends install $DPKG_OPTIONS" + APTUPGRADE='aptitude -y safe-upgrade' + fi else APTINSTALL="apt-get --force-yes -y --no-install-recommends install $DPKG_OPTIONS" APTUPDATE='apt-get update'