summaryrefslogtreecommitdiffstats
path: root/vagrant/definitions/tails-builder/postinstall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant/definitions/tails-builder/postinstall.sh')
-rwxr-xr-xvagrant/definitions/tails-builder/postinstall.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/vagrant/definitions/tails-builder/postinstall.sh b/vagrant/definitions/tails-builder/postinstall.sh
index 757efa5..448316a 100755
--- a/vagrant/definitions/tails-builder/postinstall.sh
+++ b/vagrant/definitions/tails-builder/postinstall.sh
@@ -28,8 +28,16 @@ APT::Install-Recommends "false";
APT::Install-Suggests "false";
EOF
-echo "I: Installing extra dependencies..."
-apt-get -y install grub2 openssh-server curl
+echo "I: Adding custom APT sources..."
+echo "deb ${MIRROR} ${DISTRIBUTION}-backports main" > \
+ "/etc/apt/sources.list.d/${DISTRIBUTION}-backports.list"
+apt-get update
+
+echo "I: Upgrading to the backported kernel..."
+apt-get -y purge 'linux-image-*'
+apt-get -y install -t "${DISTRIBUTION}-backports" "linux-image-${ARCHITECTURE}"
+
+echo "I: Configuring GRUB..."
sed -i 's,^GRUB_TIMEOUT=5,GRUB_TIMEOUT=1,g' /etc/default/grub
echo "I: Disable DNS checks to speed-up SSH logins..."