The same problem occurs when the hdd is automatically decrypted with clevis and a tang server. The script /usr/share/initramfs-tools/scripts/local-bottom/clevis tries to deactivate the network interface again after it got the secret to decrypt the disk from the tang server:
...
for iface in /sys/class/net/*; do
if [ -e "$iface" ]; then iface=$(basename "$iface")
ip link set dev "$iface" down
ip addr flush dev "$iface"
ip route flush dev "$iface"
fi
done
The presence of /run/net-*.conf and /run/netplan/*.yaml leads to the interface beeing managed by systemd-networkd instad of NetworkManager here, too.
Instead of implementing removal of the files in dropbear an clevis, maybe there is a single place to serve both, dropbear and clevis?
The same problem occurs when the hdd is automatically decrypted with clevis and a tang server. The script /usr/share/ initramfs- tools/scripts/ local-bottom/ clevis tries to deactivate the network interface again after it got the secret to decrypt the disk from the tang server:
...
iface= $(basename "$iface")
for iface in /sys/class/net/*; do
if [ -e "$iface" ]; then
ip link set dev "$iface" down
ip addr flush dev "$iface"
ip route flush dev "$iface"
fi
done
The presence of /run/net-*.conf and /run/netplan/*.yaml leads to the interface beeing managed by systemd-networkd instad of NetworkManager here, too.
Instead of implementing removal of the files in dropbear an clevis, maybe there is a single place to serve both, dropbear and clevis?