You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If --kerneldir is not specified, dracut-install will use kernel version (from uname -v) in the current directory (for example /root/#1 SMP PREEMPT Wed, 12 May 2021 17:54:18 +0000). Will never work...
If a patch like this is acceptable, I can make a PR:
diff --git a/src/install/dracut-install.c b/src/install/dracut-install.c
index 9f044ae0..3fd70fc8 100644
--- a/src/install/dracut-install.c+++ b/src/install/dracut-install.c@@ -1167,7 +1167,10 @@ static int parse_argv(int argc, char *argv[])
if (!kerneldir) {
struct utsname buf;
uname(&buf);
- kerneldir = strdup(buf.version);+ if (asprintf(&kerneldir, "%s%s", "/lib/modules/", buf.release) < 0) {+ log_error("Out of memory!");+ exit(EXIT_FAILURE);+ }
}
if (arg_modalias) {
The default will be /lib/modules/$(uname -r).
The text was updated successfully, but these errors were encountered:
If
--kerneldir
is not specified,dracut-install
will use kernel version (fromuname -v
) in the current directory (for example/root/#1 SMP PREEMPT Wed, 12 May 2021 17:54:18 +0000
). Will never work...If a patch like this is acceptable, I can make a PR:
The default will be
/lib/modules/$(uname -r)
.The text was updated successfully, but these errors were encountered: