From efb151a82c51070e2f232bf0e90630ab6b276a11 Mon Sep 17 00:00:00 2001 From: lub Date: Sat, 21 Dec 2019 18:20:19 +0100 Subject: [PATCH] add --foce-confdef for nftables and dropbear --- post-debootstrap-installer.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index d24501f..af485b5 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -23,7 +23,10 @@ apt-get -y install locales ### boot -apt-get -y install mdadm cryptsetup systemd systemd-sysv dropbear-initramfs btrfs-tools firmware-linux +apt-get -y install mdadm cryptsetup systemd systemd-sysv btrfs-tools firmware-linux + +# --force-confold because we already provide /etc/dropbear-initramfs/config +apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install dropbear-initramfs # generate minimal mdadm.conf mdadm --examine --scan | perl -pe 's/.*\/dev\/md\/?([0-9]+) .*UUID\=(.+?) .*/ARRAY \/dev\/md$1 UUID=$2/' > /etc/mdadm/mdadm.conf @@ -46,6 +49,9 @@ sed -i "s/%esp_uuid%/${esp_uuid}/" /etc/fstab ### networking +# --force-confold because we already provide /etc/nftables.conf +apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install nftables + # generate configs for systemd-networkd.service # this is template specific "/hardware-setup/hardware/${1}/network.sh"