Skip to content

Commit

Permalink
dracut/15coreos-network: enable initramfs networking on Azure
Browse files Browse the repository at this point in the history
This enables networking in initramfs on Azure, via a platform
condition.
While the Ignition configuration may be self-contained locally
on the config-drive, other bits referenced by the provisioning
flow (e.g. Afterburn hostname and boot check-in) always require
reaching remote endpoints.
  • Loading branch information
lucab authored and jlebon committed Dec 3, 2020
1 parent ce266d2 commit c1cf903
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -4,9 +4,13 @@ ConditionPathExists=/etc/initrd-release
DefaultDependencies=false
After=basic.target

# Triggering conditions for cases where we need network
# Triggering conditions for cases where we need network:
# * when Ignition signals that it is required for provisioning.
# * on live systems fetching the remote rootfs in initramfs.
# * on Azure, for hostname fetching (metadata endpoint) and boot check-in (wireserver).
ConditionPathExists=|/run/ignition/neednet
ConditionKernelCommandLine=|coreos.live.rootfs_url
ConditionKernelCommandLine=|ignition.platform.id=azure

# Creates /run/ignition/neednet
After=ignition-fetch-offline.service
Expand Down

0 comments on commit c1cf903

Please sign in to comment.