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 11:40:00 +0000 (12:40 +0100)
commit67dcdfd95629f96773446893e5e5488cef31dfa1
tree6a1236950d71e276822543a45c1dd34dd9c5f01c
parenta7938a1bc6d360ccaf1055c29001bc686ec7830d
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)
(cherry picked from commit e874419902892d4bc272475b14446fe8385b0e8b)
src/nspawn/nspawn-network.c