From 696bbef89c74d3c08fd6adc8c90fc538f0c3244f Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Thu, 28 Apr 2022 18:19:13 +0200 Subject: [PATCH] Added include interfaces.d/* in network interfaces --- proxmox-zfs-postinstall.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proxmox-zfs-postinstall.sh b/proxmox-zfs-postinstall.sh index 87d6578..4086247 100644 --- a/proxmox-zfs-postinstall.sh +++ b/proxmox-zfs-postinstall.sh @@ -174,6 +174,12 @@ fi echo "Getting latest package lists" apt update > /dev/null 2>&1 +# include interfaces.d to enable SDN features +q=$(cat /etc/network/interfaces | grep "source /etc/network/interfaces.d/*") +if [ $? -gt 0 ]; then + echo "source /etc/network/interfaces.d/*" >> /etc/network/interfaces +fi + # update system and install basic tools echo "Upgrading system to latest version - Depending on your version this could take a while..." DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq dist-upgrade > /dev/null 2>&1