diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2013-07-30 14:05:40 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-07-30 14:05:40 -0400 |
commit | 6284c1ca41dca85e968e8d304cdc154c5a46d6d2 (patch) | |
tree | e784cc8f766b9a8ed3fe215752d535aed22db8ef /src/udev/udevd.c | |
parent | 67ba217a190ec3946ae80d99d02648daf32d826d (diff) |
udev: export tags of "dead" device nodes to /run/udev/static_node-tags/
This is upstream 84b6ad702e64db534f67ce32d4dd2fec00a16784
Based on a patch by Kay Sievers.
A tag is exported at boot as a symlinks to the device node in the folder
/run/udev/static_node-tags/<tagname>/, if the device node exists.
These tags are cleaned up by udevadm info --cleanup-db, but are otherwise
never removed.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r-- | src/udev/udevd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index a923ce740b..28e626c16a 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1225,7 +1225,9 @@ int main(int argc, char *argv[]) } log_debug("set children_max to %u\n", children_max); - udev_rules_apply_static_dev_perms(rules); + rc = udev_rules_apply_static_dev_perms(rules); + if (rc < 0) + log_error("failed to apply permissions on static device nodes - %s\n", strerror(-rc)); udev_list_node_init(&event_list); udev_list_node_init(&worker_list); |