Skip to content

Commit

Permalink
overlay.d: only run coreos-enable-network on first boot
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
dustymabe authored and HuijingHei committed Oct 10, 2023
1 parent 25d3b27 commit 1bafb9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ install() {
inst_simple "$moddir/coreos-enable-network.sh" \
"/usr/sbin/coreos-enable-network"
install_and_enable_unit "coreos-enable-network.service" \
"initrd.target"
"ignition-complete.target"

inst_simple "$moddir/coreos-copy-firstboot-network.sh" \
"/usr/sbin/coreos-copy-firstboot-network"
Expand Down

0 comments on commit 1bafb9b

Please sign in to comment.