Skip to content

Commit 4e0c2ee

Browse files
committed
cidata: skip set-name for slirp NIC to fix ubuntu-26.04 first-boot delay
On ubuntu-26.04 (and similar), systemd-networkd-wait-online is configured by netplan to wait for the renamed interface (eth0) before it exists. On first boot the NIC is still enp0s1 — the udev rename hasn't happened yet — causing a 120s timeout. Skipping set-name for the built-in slirp NIC leaves the interface under its kernel-assigned predictable name, so systemd-networkd-wait-online no longer waits for eth0 and boot completes immediately. set-name is preserved for any user-configured extra NICs. Fixes: #4792
1 parent 2d4314e commit 4e0c2ee

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/cidata/cidata.TEMPLATE.d/network-config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ ethernets:
55
match:
66
macaddress: '{{$nw.MACAddress}}'
77
dhcp4: true
8+
{{- if ne $nw.Interface $.SlirpNICName }}
89
set-name: {{$nw.Interface}}
10+
{{- end }}
911
dhcp4-overrides:
1012
route-metric: {{$nw.Metric}}
1113
dhcp-identifier: mac

0 commit comments

Comments
 (0)