GNU bug report logs - #68162
[PATCH] initrd: Parse kernel command line and pass module parameters

Previous Next

Package: guix-patches;

Reported by: nathan <nathan_mail <at> nborghese.com>

Date: Sun, 31 Dec 2023 04:20:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: nathan <nathan_mail <at> nborghese.com>
To: 68162 <at> debbugs.gnu.org
Subject: [bug#68162] [PATCH] initrd: Parse kernel command line and pass module parameters
Date: Sat, 30 Dec 2023 23:14:10 -0500
[Message part 1 (text/plain, inline)]
GUIX's initrd code ignores the kernel command line and always passes no parameters to the modules it loads.
This fixes it with command line parsing code that is accurate to what modprobe does.
The user's module options, like somemodule.param=val, are properly passed now.
It also allows the modprobe.blacklist option to optionally be quoted and normalizes the module names given in the blacklist.
modprobe.blacklist="module1,mod-ule2" -> '("module1" "mod_ule2")

I tested passing module options with the command line in a VM and on my real system.
Tested blacklist code in a VM.

I've also attached my code I used to test the commandline parsing function manually.

fix bug#55907
https://lists.gnu.org/archive/html/bug-guix/2022-06/msg00157.html

[0001-linux-modules-Allow-parameters-to-be-passed-to-kerne.patch (text/x-patch, attachment)]
[0002-linux-modules-Parse-kernel-command-line-and-pass-mod.patch (text/x-patch, attachment)]
[0003-linux-modules-Rewrite-module-black-list-with-parse-k.patch (text/x-patch, attachment)]
[test.scm (application/octet-stream, attachment)]

This bug report was last modified 1 year and 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.