summaryrefslogtreecommitdiffstats
path: root/share/build-scripts/debconf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-06-04 05:04:30 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-06-04 05:04:30 +0000
commit46881aaa4bb0380f1273931fdac3b8b94bd0758a (patch)
tree007168cc3869227220dc0b86a87e0584ea020e92 /share/build-scripts/debconf
parentAdding missing dhcp option in select question of the debconf build script. (diff)
downloadcompute-tools-46881aaa4bb0380f1273931fdac3b8b94bd0758a.tar.xz
compute-tools-46881aaa4bb0380f1273931fdac3b8b94bd0758a.zip
Adding new 'stub' network interface method in debconf build-script, thanks to Sakirnth Nagarasa <sakirnth@gmail.com> for the use-case and idea.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share/build-scripts/debconf')
-rwxr-xr-xshare/build-scripts/debconf17
1 files changed, 17 insertions, 0 deletions
diff --git a/share/build-scripts/debconf b/share/build-scripts/debconf
index 1689a79..ac5f9cd 100755
--- a/share/build-scripts/debconf
+++ b/share/build-scripts/debconf
@@ -880,6 +880,14 @@ EOF
fi
;;
+
+ stub)
+
+cat >> "${DIRECTORY}/etc/systemd/network/eno${NUMBER}.network" << EOF
+DHCP=no
+EOF
+
+ ;;
esac
if [ -n "${IPV4_POST_UP}" ]
@@ -962,6 +970,15 @@ EOF
fi
;;
+
+ stub)
+
+cat >> "${DIRECTORY}/etc/systemd/network/eno${NUMBER}.network" << EOF
+DHCP=no
+IPv6AcceptRA=no
+EOF
+
+ ;;
esac
if [ -n "${IPV6_POST_UP}" ]