Skip to content

Commit 937d329

Browse files
dustymabejlebon
authored andcommitted
overlay.d: only run coreos-enable-network on first boot
I noticed recently that Azure is bringing up networking in the initramfs on every boot [1]. This behavior was originally introduced in c1cf903. After some discussion with @jlebon and @bgilbert we are going to convert the coreos-enable-network.service to only be pulled in and enalbed on the Ignition boot so that it doesn't run on subsequent boots. [1] coreos/fedora-coreos-tracker#1383 (comment)
1 parent 1923b7b commit 937d329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overlay.d/05core/usr/lib/dracut/modules.d/35coreos-network/module-setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install() {
1111
inst_simple "$moddir/coreos-enable-network.sh" \
1212
"/usr/sbin/coreos-enable-network"
1313
install_and_enable_unit "coreos-enable-network.service" \
14-
"initrd.target"
14+
"ignition-complete.target"
1515

1616
inst_simple "$moddir/coreos-copy-firstboot-network.sh" \
1717
"/usr/sbin/coreos-copy-firstboot-network"

0 commit comments

Comments
 (0)