TommyTran732 / Arch-Setup-Script

Setting up Arch Linux with BTRFS, snapshots and full disk encryption including /boot (UEFI only)
Apache License 2.0
43 stars 35 forks source link

systemd-networkd puts ethernet interfaces into degraded mode on first boot. #42

Closed funk-on-code closed 22 hours ago

funk-on-code commented 1 month ago

Using a server install, systemd-networkd initially puts interfaces into degraded mode on first boot, rather than routing them accordingly.

From the ISO:

# networkctl

2 ens33 ether routable configured

# networkctl status

Interfaces: 1, 2 State: routable Online state: online Address: 10.0.0.50 on ens33 Address: fe80::20c:29ff:fe61:1e1c on ens33 Gateway: 10.0.0.250 on ens33 DNS: 10.0.0.245

status also says:

ens33: Configuring with /etc/systemd/network/20-ethernet.network.

On first boot (after creating /etc/systemd/network/20-ethernet.network with the same content that boots correctly from the ISO):

# networkctl up ens33

# networkctl

2 ens33 ether degraded unmanaged

# networkctl status

Interfaces: 2, 1 State: degraded Online state: unknown Address: fe80::20c:29ff:fe61:1e1c on ens33

Investigation is ongoing :)

funk-on-code commented 1 month ago

Additionally, copying the files from the ISO to the chroot and rebooting, actually configures the interface.

added:

cp /etc/systemd/network/*.network /mnt/etc/systemd/network/

to the bottom of the script, works on first boot.