aboutsummaryrefslogtreecommitdiffstats
path: root/templates/boot
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-01-19 23:50:09 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-01-20 01:25:53 +0100
commit87a46d7e62a46ef3c6a1f9cd93753e63c95d40d7 (patch)
treecbf7b99f7d5fb33142df3a4af1a719a09979118c /templates/boot
parent4feb32eee5a86335c5f080d51c2496b86ffb9c6c (diff)
Change the mask to the systemd-network-generator.serviceoctopus_14.94.0octopus_14.93.0octopus/14.94.0octopus/14.93.014.94.014.93.0
It is not systemd-networkd that does bite use here, it is the systemd-network-generator.service that will interfere with our settings. This is triggered by the ip=dhcp setting on the kernel cmdline and even the removed wired.network file will not prevent his from interfering and taking the network interface down and up for another dhcp run. Question is ... WHY ?!: The interface IS already configured. Connmand can be configured to ignore it and does actually ignore or at least not take it down. Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I2872ddfbc97e26ae84fcc3640a9129c28691557c
Diffstat (limited to 'templates/boot')
-rw-r--r--templates/boot/generic-base-boot.jinja26
-rw-r--r--templates/boot/generic-grub-tftp.jinja22
2 files changed, 7 insertions, 1 deletions
diff --git a/templates/boot/generic-base-boot.jinja2 b/templates/boot/generic-base-boot.jinja2
index cfd113f..d5f05a2 100644
--- a/templates/boot/generic-base-boot.jinja2
+++ b/templates/boot/generic-base-boot.jinja2
@@ -1,5 +1,11 @@
{%- extends 'base/agl-simple.jinja2' %}
{%- if rootfs_type == 'nbd' %}
+{%- block main %}
+{{ super () }}
+# context allows specific values to be overridden or included
+context:
+ extra_kernel_args: systemd.mask=systemd-network-generator.service
+{%- endblock %}
{%- block deploy %}
{{ super() }}
protocols:
diff --git a/templates/boot/generic-grub-tftp.jinja2 b/templates/boot/generic-grub-tftp.jinja2
index 7c02040..192abd0 100644
--- a/templates/boot/generic-grub-tftp.jinja2
+++ b/templates/boot/generic-grub-tftp.jinja2
@@ -9,7 +9,7 @@ protocols:
# context allows specific values to be overridden or included
context:
- extra_kernel_args: initrd={{ initrd }} systemd.mask=systemd-networkd.service
+ extra_kernel_args: initrd={{ initrd }} systemd.mask=systemd-network-generator.service
{%- endif %}
{% endblock %}
{%- block boot %}