From b727a78562afd4cf51c9075d0cab82fb57751dd0 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 18 Jul 2020 16:24:26 +0200 Subject: [PATCH] /e/n/i: move sourcing of /etc/network/interfaces.d/ to begin of file netcardconfig doesn't properly handle this section and it disappears when configuring network devices then. Rewriting netcardconfig is on our agenda (see https://github.com/grml/grml-network/issues/11), until we get there let's make sure the status quo works as good as possible. Take over wording based on what ifupdown's postinst script uses. --- components/9990-grml-networking.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/9990-grml-networking.sh b/components/9990-grml-networking.sh index 0bc5ed2..b899461 100644 --- a/components/9990-grml-networking.sh +++ b/components/9990-grml-networking.sh @@ -39,7 +39,11 @@ fi # config for loopback networking cat > $IFFILE << EOF -# Initially generated on boot by initramfs +# Initially generated on boot by initramfs, +# interfaces(5) file used by ifup(8) and ifdown(8) + +# Include files from /etc/network/interfaces.d: +source /etc/network/interfaces.d/* auto lo iface lo inet loopback @@ -135,10 +139,6 @@ EOF echo>> $IFFILE done -echo '# Support overriding defaults:' >> $IFFILE -echo 'source /etc/network/interfaces.d/*' >> $IFFILE -echo>> $IFFILE - # dns bootoption if [ -n "$DNSSERVERS" ] then -- 2.1.4