diff options
author | Nick Rosbrook <nick.rosbrook@canonical.com> | 2022-06-08 15:53:30 -0400 |
---|---|---|
committer | Nick Rosbrook <nick.rosbrook@canonical.com> | 2022-06-08 18:32:37 -0400 |
commit | bfe2e67f258695c768572350f8fac747aef8d681 (patch) | |
tree | 14a45e2b6e5f82c35d2f2f303ab91cb46d6eeee5 | |
parent | 4f62dc3e92474708b7600eb36a0c4b1417f947d1 (diff) | |
download | systemd-bfe2e67f258695c768572350f8fac747aef8d681.tar.gz |
libsystemd-network: use udev_available()
-rw-r--r-- | src/libsystemd-network/dhcp-identifier.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-network/dhcp-identifier.c b/src/libsystemd-network/dhcp-identifier.c index d2b190244f..326b09ac5e 100644 --- a/src/libsystemd-network/dhcp-identifier.c +++ b/src/libsystemd-network/dhcp-identifier.c @@ -11,7 +11,6 @@ #include "netif-util.h" #include "siphash24.h" #include "sparse-endian.h" -#include "stat-util.h" #include "string-table.h" #include "udev-util.h" @@ -213,7 +212,7 @@ int dhcp_identifier_set_iaid( uint64_t id; int r; - if (path_is_read_only_fs("/sys") <= 0 && !use_mac) { + if (udev_available() && !use_mac) { /* udev should be around */ r = sd_device_new_from_ifindex(&device, ifindex); |