summaryrefslogtreecommitdiffstats
path: root/inst
diff options
context:
space:
mode:
Diffstat (limited to 'inst')
-rwxr-xr-xinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/inst b/inst
index 5243c86..f9b97dd 100755
--- a/inst
+++ b/inst
@@ -273,6 +273,12 @@ do_apt_update()
${apt_sources}
EOF
+ case "${apt_preferences+set}" in 'set')
+ sed 's/^\t*//;' >"${target}/etc/apt/preferences" <<-EOF
+ ${apt_preferences}
+ EOF
+ esac
+
in_target apt-get update || return 1
in_target apt-get -q -y dist-upgrade || return 1
in_target apt-get clean || return 1