diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2022-06-04 05:04:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2022-06-04 05:04:30 +0000 |
commit | 46881aaa4bb0380f1273931fdac3b8b94bd0758a (patch) | |
tree | 007168cc3869227220dc0b86a87e0584ea020e92 /share/build-scripts/debconf | |
parent | Adding missing dhcp option in select question of the debconf build script. (diff) | |
download | compute-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-x | share/build-scripts/debconf | 17 |
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}" ] |