guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#68162] [PATCH] initrd: Parse kernel command line and pass module pa


From: nathan
Subject: [bug#68162] [PATCH] initrd: Parse kernel command line and pass module parameters
Date: Sat, 30 Dec 2023 23:14:10 -0500

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

Attachment: 0001-linux-modules-Allow-parameters-to-be-passed-to-kerne.patch
Description: Text Data

Attachment: 0002-linux-modules-Parse-kernel-command-line-and-pass-mod.patch
Description: Text Data

Attachment: 0003-linux-modules-Rewrite-module-black-list-with-parse-k.patch
Description: Text Data

Attachment: test.scm
Description: manual testing code


reply via email to

[Prev in Thread] Current Thread [Next in Thread]