summaryrefslogtreecommitdiff
path: root/src/udev/udev-rules.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-02-07 13:53:28 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-02-07 13:53:28 +0100
commit96da532526fec9bbfc9f53f2c5819520b971710c (patch)
tree9b23bd0f28bd285b1bb8355187c43c0325019f4a /src/udev/udev-rules.c
parent94d7639cf2435a92672c6043e8e0333452c24c80 (diff)
udevadm: support updating hwdb from an offset root
Introduce `--root` option to make users run udevadm on rootfs not mounted as / Ease the life of distribution packagers.
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r--src/udev/udev-rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index ab755210ba..0fcad5d7e9 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -1639,7 +1639,7 @@ struct udev_rules *udev_rules_new(struct udev *udev, int resolve_names)
return udev_rules_unref(rules);
udev_rules_check_timestamp(rules);
- r = conf_files_list_strv(&files, ".rules", (const char **)rules->dirs);
+ r = conf_files_list_strv(&files, NULL, ".rules", (const char **)rules->dirs);
if (r < 0) {
log_error("failed to enumerate rules files: %s\n", strerror(-r));
return udev_rules_unref(rules);