On 2016-11-14 04:48, Andrei Borzenkov wrote:
14.11.2016 00:51, Sylvain Pasche пишет:
Hi,
On the Predictable Network Interface Names wiki page [1], one of the
option for disabling predictable network interface names is to mask
the 80-net-setup-link.rules udev rule.
This has a side effect of somewhat breaking systemd-network:
net_setup_link builtin is not run and the ID_NET_DRIVER udev property
is not set on the interface.
Consequently, the .network files that match against a driver (such as
/usr/lib/systemd/network/80-container-ve.network) don't pick up the
interface.
I encountered that issue when trying to use --network-veth with
systemd-nspawn on the Fedora cloud image (where
80-net-setup-link.rules is masked). In this case, network is not
available in the container and it can be tricky to understand why.
So I would suggest to update that wiki page. Here's an alternative for
udev:
cat /usr/lib/udev/rules.d/80-net-setup-link.rules | grep -v NAME= >
/etc/udev/rules.d/80-net-setup-link.rules
yuck. Does net.ifnames=0 not work for you?
Hi,
Option 3 works, but the goal here was to find an alternative for option
1.
Lennart found a better suggestion for that.
Cheers,
Sylvain
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel