From: Nick Rosbrook Date: Wed, 8 Jun 2022 19:53:30 +0000 (-0400) Subject: libsystemd-network: use udev_available() X-Git-Tag: v252-rc1~851^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfe2e67f258695c768572350f8fac747aef8d681;p=thirdparty%2Fsystemd.git libsystemd-network: use udev_available() --- diff --git a/src/libsystemd-network/dhcp-identifier.c b/src/libsystemd-network/dhcp-identifier.c index d2b190244f5..326b09ac5e2 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);