From e7d9750b5ce483bfd0a7f300a5530af62e0e624d Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 9 Mar 2021 11:41:02 -0500 Subject: [PATCH 1/2] systemd: correct path to modprobe@.service The unit hard-codes a path to modprobe which is obviously invalid. --- pkgs/os-specific/linux/systemd/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 7e3c6d1fe51f..4f757862897b 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -415,6 +415,7 @@ stdenv.mkDerivation { src/shared/generator.c \ src/shutdown/shutdown.c \ units/emergency.service.in \ + units/modprobe@.service \ units/rescue.service.in \ units/systemd-logind.service.in \ units/systemd-nspawn@.service.in; \ From 0b52c402406fa0a2f3e9886ba723398bf2b74a72 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 4 Mar 2021 15:05:16 -0500 Subject: [PATCH 2/2] nixos/systemd: bring in modprobe@.service It is broken: it looks for /sbin/modprobe, but it works anyway?? --- nixos/modules/system/boot/systemd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 6b672c7b2eb4..e3cd8f58c061 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -84,6 +84,7 @@ let # Kernel module loading. "systemd-modules-load.service" "kmod-static-nodes.service" + "modprobe@.service" # Filesystems. "systemd-fsck@.service"