1
1
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:
Dave Reisner 2012-07-01 19:37:52 -04:00 committed by Kay Sievers
parent 33c5fae939
commit b80680eda9

View File

@ -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;