summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libsystemd-network/dhcp-identifier.c3
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);