Files
spinifex/scripts/images/eks-node/mulga-mgmt-net.initd
T
2026-06-25 13:48:08 +10:00

20 lines
750 B
Plaintext

#!/sbin/openrc-run
# mulga-mgmt-net — boot oneshot that configures a multi-NIC system VM's NICs from
# the fw_cfg netcfg blob before cloud-init's network stage. BootAMI system VMs
# (EKS control plane) are dual-NIC: the data ENI is DHCP'd here so the Ec2 IMDS
# datasource can reach 169.254.169.254 (cloud-init can't pick the right NIC out
# of two on Alpine), and mgmt0's static br-mgmt address is applied. Role-agnostic
# and enabled on every node — a no-op when no netcfg blob is present.
description="Configure system-VM NICs from fw_cfg netcfg (data DHCP + mgmt static)"
depend() {
before cloud-init k3s k3s-agent
}
start() {
ebegin "Configuring system-VM NICs from fw_cfg netcfg"
/usr/local/sbin/mulga-mgmt-net
eend $?
}