diff --git a/mk-sbuild b/mk-sbuild index e280fbb..40f673f 100755 --- a/mk-sbuild +++ b/mk-sbuild @@ -858,6 +858,13 @@ EOM fi fi if [ -z "$SKIP_PROPOSED" ]; then + TEMP_PREFERENCES=`mktemp -t preferences-XXXXXX` + cat >> "$TEMP_PREFERENCES" <> "$TEMP_SOURCES" < $MNT/etc/apt/sources.list" rm -f "$TEMP_SOURCES" +if [ -n "$TEMP_PREFERENCES" ]; then + sed -e "s|RELEASE|$RELEASE|g" < "$TEMP_PREFERENCES" | \ + sudo bash -c "cat > $MNT/etc/apt/preferences" + rm -f "$TEMP_PREFERENCES" +fi # Copy the timezone (comment this out if you want to leave the chroot at UTC) sudo cp -P --remove-destination /etc/localtime /etc/timezone "$MNT"/etc/