function create-persistent-network-interface-names () {
    # Bind network interface names of ethernet to MAC addresses
    ip -br link show | grep -E '^(en|eth)' | awk '{print $1}' | while read -r iface; do
        local mac=$(ip -br link show "$iface" 2>/dev/null | awk '{print $3}')
        [ -n "$mac" ] || continue
        cat >/etc/systemd/network/10-$iface.link <<-EOF
		[Match]
		MACAddress=$mac

		[Link]
		Name=$iface
		EOF
    done
}
