mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
udevd: use ROOTPREFIX to create path to modules.devname
This commit is contained in:
parent
33c5fae939
commit
b80680eda9
@ -806,7 +806,7 @@ static void static_dev_create_from_modules(struct udev *udev)
|
||||
FILE *f;
|
||||
|
||||
uname(&kernel);
|
||||
util_strscpyl(modules, sizeof(modules), "/lib/modules/", kernel.release, "/modules.devname", NULL);
|
||||
util_strscpyl(modules, sizeof(modules), ROOTPREFIX "/lib/modules/", kernel.release, "/modules.devname", NULL);
|
||||
f = fopen(modules, "r");
|
||||
if (f == NULL)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user