summaryrefslogtreecommitdiffstats
path: root/http
diff options
context:
space:
mode:
authorJonathan Bauer2017-05-18 10:54:30 +0200
committerJonathan Bauer2017-05-18 10:54:30 +0200
commitf4d7cfd19ae6cae8bb31ebfff85d25dd68092d04 (patch)
tree2eb3f5f306515133564c6e1773f5f5c6e38c764c /http
parentslight change in output directory (diff)
downloadpacker-templates-f4d7cfd19ae6cae8bb31ebfff85d25dd68092d04.tar.gz
packer-templates-f4d7cfd19ae6cae8bb31ebfff85d25dd68092d04.tar.xz
packer-templates-f4d7cfd19ae6cae8bb31ebfff85d25dd68092d04.zip
upgrade packages during initial install (wip)
Diffstat (limited to 'http')
-rw-r--r--http/ubuntu-16.04/preseed.cfg15
1 files changed, 10 insertions, 5 deletions
diff --git a/http/ubuntu-16.04/preseed.cfg b/http/ubuntu-16.04/preseed.cfg
index 55dab8d..d99a94a 100644
--- a/http/ubuntu-16.04/preseed.cfg
+++ b/http/ubuntu-16.04/preseed.cfg
@@ -2,6 +2,8 @@ d-i debian-installer/locale string en_US
d-i time/zone string UTC
d-i keyboard-configuration/xkb-keymap select de
+d-i mirror/country string de
+
d-i partman-basicfilesystems/choose_label string gpt
d-i partman-basicfilesystems/default_label string gpt
d-i partman-basicfilesystems/no_swap boolean false
@@ -36,14 +38,17 @@ d-i passwd/make-user boolean false
d-i passwd/root-login boolean true
d-i user-setup/allow-password-weak boolean true
+## install base packages ##
d-i pkgsel/include string curl openssh-server ansible
-d-i pkgsel/language-packs multiselect
-
-d-i finish-install/reboot_in_progress note
-
+d-i pkgsel/language-packs multiselect de, en
d-i preseed/early_command string \
mkdir -p /usr/lib/post-base-installer.d && \
echo "sed -i -e 's/^in-target.*tasksel.*/#\\0/' /var/lib/dpkg/info/pkgsel.postinst" > /usr/lib/post-base-installer.d/90skip-tasksel && \
chmod +x /usr/lib/post-base-installer.d/90skip-tasksel
-d-i preseed/late_command string sed -i 's,^PermitRootLogin.*,PermitRootLogin yes,' /target/etc/ssh/sshd_config
+d-i preseed/late_command string \
+ in-target sed -i 's,^PermitRootLogin.*,PermitRootLogin yes,' /etc/ssh/sshd_config ; \
+ in-target apt-get update ; \
+ in-target apt-get -y upgrade
+
+d-i finish-install/reboot_in_progress note