mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
allow to overwrite the configured udev_root by exporting UDEV_ROOT
This commit is contained in:
parent
a8a614a701
commit
2796c47b5c
@ -192,6 +192,12 @@ void udev_init_config(void)
|
||||
|
||||
parse_config_file();
|
||||
|
||||
env = getenv("UDEV_ROOT");
|
||||
if (env) {
|
||||
strlcpy(udev_root, env, sizeof(udev_root));
|
||||
remove_trailing_chars(udev_root, '/');
|
||||
}
|
||||
|
||||
env = getenv("UDEV_LOG");
|
||||
if (env)
|
||||
udev_log_priority = log_priority(env);
|
||||
|
Loading…
Reference in New Issue
Block a user