nspawn: do not fail if udev is not running
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 2 Dec 2019 15:51:44 +0000 (00:51 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 15 Dec 2019 10:24:12 +0000 (11:24 +0100)
commite874419902892d4bc272475b14446fe8385b0e8b
treea383fa6eab52d8b7173d0c69f101df6d3d66deab
parent29c9144655de34494c424a36b6b42e2776db817e
nspawn: do not fail if udev is not running

If /sys is read only filesystem, e.g., nspawn is running in container,
then usually udev is not running. In such a case, let's assume that
the interface is already initialized. Also, this makes nspawn refuse
to use the network interface which is under renaming.

Fixes #14223.

(cherry picked from commit 26208d5b9674079dcf2c9d301f09a7c7b23bfdc3)
src/nspawn/nspawn-network.c