liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0d5922c81183c319eb22939a4e6502b5ab62f9bf
parent d0376d41016e0ddbd532b63f7fd3b2f4fcbcdf37
Author: Peter Collingbourne <peter@pcc.me.uk>
Date:   Sun,  3 May 2026 01:18:18 -0700

kmodloader: Filter out builtin lines from modprobe output

modprobe will print "builtin" lines for modules that are statically
linked into the kernel, which confuses this shell pipeline. Fix it by
adding a grep for "^insmod".

Diffstat:
Mpkgs/kmodloader/default.nix | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgs/kmodloader/default.nix b/pkgs/kmodloader/default.nix @@ -28,7 +28,7 @@ let depmod -b . 0.0 (for i in ${lib.concatStringsSep " " targets}; do - modprobe -S 0.0 -d $NIX_BUILD_TOP --show-depends $i | sed "s,^insmod $NIX_BUILD_TOP/lib/modules/0.0/,,g" + modprobe -S 0.0 -d $NIX_BUILD_TOP --show-depends $i | grep "^insmod" | sed "s,^insmod $NIX_BUILD_TOP/lib/modules/0.0/,,g" done) | awk '!a[$0]++' > load-order mkdir $out