9990-grml-networking.sh: support /etc/network/interfaces.d/* in /e/n/i
authorMichael Prokop <mika@grml.org>
Wed, 27 May 2020 11:48:50 +0000 (13:48 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 27 May 2020 11:52:13 +0000 (13:52 +0200)
For example cloud-init writes its network configuration file to
/etc/network/interfaces.d/50-cloud-init, so the file needs
to be sourced.

Related to https://github.com/grml/grml/issues/124

components/9990-grml-networking.sh

index 16e7b7f..939c0ea 100644 (file)
@@ -133,6 +133,10 @@ EOF
     unset IPV4DNS IPV4DNSLIST
 
     echo>> $IFFILE
+    echo '# Support overriding defaults:' >> $IFFILE
+    echo 'source /etc/network/interfaces.d/*' >> $IFFILE
+
+    echo>> $IFFILE
 done
 
 # dns bootoption