Skip to content

Commit

Permalink
dracut/firstboot-network: add default network kargs
Browse files Browse the repository at this point in the history
This add the default kargs for firstboot networking, currently mirroring
the ones configured in GRUB.
  • Loading branch information
lucab committed Apr 21, 2020
1 parent 2317889 commit 5ac8aef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This contains the default kargs for firstboot network configuration.
# Default values can be dynamically overriden by platform-specific
# logic (e.g. injected via a back-channel).
# https://github.com/coreos/fedora-coreos-tracker/issues/460

[Service]
Environment=AFTERBURN_NETWORK_KARGS_DEFAULT='ip=dhcp,dhcp6'
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ install() {
# has disks. ignition-diskful.target should suffice.
install_and_enable_unit "coreos-copy-firstboot-network.service" \
"ignition-diskful.target"

# Dropin with firsboot network configuration kargs, applied via
# Afterburn.
inst_simple "$moddir/50-afterburn-network-kargs-default.conf" \
"/usr/lib/systemd/system/afterburn-network-kargs.service.d/50-afterburn-network-kargs-default.conf"

}

0 comments on commit 5ac8aef

Please sign in to comment.