mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 08:26:52 +03:00
udev: warn when name_to_handle_at is not implemented
We have a bunch of reports from people who have a custom kernel and are confused why udev is not running. Issue a warning on error. Barring an error in the code, the only error that is possible is ENOSYS. https://bugzilla.redhat.com/show_bug.cgi?id=1072966
This commit is contained in:
parent
bf50056632
commit
e6c474723d
@ -119,8 +119,11 @@ static bool udev_has_devtmpfs(struct udev *udev) {
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
r = name_to_handle_at(AT_FDCWD, "/dev", &h.handle, &mount_id, 0);
|
r = name_to_handle_at(AT_FDCWD, "/dev", &h.handle, &mount_id, 0);
|
||||||
if (r < 0)
|
if (r < 0) {
|
||||||
|
if (errno != EOPNOTSUPP)
|
||||||
|
udev_err(udev, "name_to_handle_at on /dev: %m\n");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
f = fopen("/proc/self/mountinfo", "re");
|
f = fopen("/proc/self/mountinfo", "re");
|
||||||
if (!f)
|
if (!f)
|
||||||
|
Loading…
Reference in New Issue
Block a user