diff options
| author | Dave Reisner <dreisner@archlinux.org> | 2012-09-27 11:00:42 -0400 |
|---|---|---|
| committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-10-02 00:27:31 -0300 |
| commit | c5b37dba8956dd8f82c54b9f97dc5dca07940db5 (patch) | |
| tree | b8a63455b7b90ebe8191434e9afe9e488f8d4374 /libkmod/libkmod.c | |
| parent | 7812d88c95e10e690c3d1c057ab2fa7ad1edaafa (diff) | |
| download | kmod-c5b37dba8956dd8f82c54b9f97dc5dca07940db5.tar.gz | |
build-sys: Remove --with-rootprefix option
This is a broken option that only leads to misery and incompatabilities
with other systems. Kbuild doesn't come close to supporting directories
other than /lib/modules with several targets simply failing without
hacky fixes. Simply remove the option and all traces of it, as it
doesn't make sense in today's world.
Diffstat (limited to 'libkmod/libkmod.c')
| -rw-r--r-- | libkmod/libkmod.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c index 14a8f1f..f898438 100644 --- a/libkmod/libkmod.c +++ b/libkmod/libkmod.c @@ -61,7 +61,7 @@ static struct _index_files { static const char *default_config_paths[] = { SYSCONFDIR "/modprobe.d", "/run/modprobe.d", - ROOTPREFIX "/lib/modprobe.d", + "/lib/modprobe.d", NULL }; @@ -195,7 +195,7 @@ static int log_priority(const char *priority) return 0; } -static const char *dirname_default_prefix = ROOTPREFIX "/lib/modules"; +static const char *dirname_default_prefix = "/lib/modules"; static char *get_kernel_release(const char *dirname) { @@ -217,16 +217,15 @@ static char *get_kernel_release(const char *dirname) /** * kmod_new: * @dirname: what to consider as linux module's directory, if NULL - * defaults to $rootprefix/lib/modules/`uname -r`. If it's relative, + * defaults to /lib/modules/`uname -r`. If it's relative, * it's treated as relative to current the current working * directory. Otherwise, give an absolute dirname. * @config_paths: ordered array of paths (directories or files) where * to load from user-defined configuration parameters such as * alias, blacklists, commands (install, remove). If * NULL defaults to /run/modprobe.d, /etc/modprobe.d and - * $rootprefix/lib/modprobe.d. Give an empty vector if - * configuration should not be read. This array must be null - * terminated. + * /lib/modprobe.d. Give an empty vector if configuration should + * not be read. This array must be null terminated. * * Create kmod library context. This reads the kmod configuration * and fills in the default values. |
