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

To reply to this bug, email your comments to 68162 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#68162; Package guix-patches. (Sun, 31 Dec 2023 04:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to nathan <nathan_mail <at> nborghese.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 31 Dec 2023 04:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: nathan <nathan_mail <at> nborghese.com>
To: guix-patches <at> gnu.org
Subject: [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.