]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: use udev_available() 23675/head
authorNick Rosbrook <nick.rosbrook@canonical.com>
Wed, 8 Jun 2022 19:53:45 +0000 (15:53 -0400)
committerNick Rosbrook <nick.rosbrook@canonical.com>
Wed, 8 Jun 2022 22:32:37 +0000 (18:32 -0400)
src/nspawn/nspawn-network.c

index f3d7f403f91b2d545fae2aef06a4f8d7148c719b..536e3692311fcd4087ab2fb96f4cd1640149c204 100644 (file)
@@ -468,7 +468,7 @@ int test_network_interface_initialized(const char *name) {
         _cleanup_(sd_device_unrefp) sd_device *d = NULL;
         int r;
 
-        if (path_is_read_only_fs("/sys") > 0)
+        if (!udev_available())
                 return 0;
 
         /* udev should be around. */