|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# `lvm`, `dmsetup`, `cryptsetup`, and `kexec`.
|
|
|
|
|
{ lib
|
|
|
|
|
, nixpkgsOnBuildForHost
|
|
|
|
|
, platform_name
|
|
|
|
|
, kernel
|
|
|
|
|
, modules_noinsmod ? [ ]
|
|
|
|
|
, modules_insmod ? [ ]
|
|
|
|
|
, kernelname
|
|
|
|
@ -13,8 +13,8 @@ let
|
|
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
|
name = "ownerboot-initramfs-userspace";
|
|
|
|
|
modules = (lib.concatMapStringsSep "\n" (m: "${kernelname}/kernel/" + m) (modules_insmod ++ modules_noinsmod))+"\n";
|
|
|
|
|
modules_insmod = (lib.concatMapStringsSep "\n" (m: "${kernelname}/kernel/" + m) modules_insmod) + "\n";
|
|
|
|
|
modules_all = (lib.concatMapStringsSep "\n" (m: "${kernel.version}/kernel/" + m) (modules_insmod ++ modules_noinsmod))+"\n";
|
|
|
|
|
modules_insmod = (lib.concatMapStringsSep "\n" (m: "${kernel.version}/kernel/" + m) modules_insmod) + "\n";
|
|
|
|
|
bootScript = builtins.readFile ../boot.sh;
|
|
|
|
|
passAsFile = [ "bootScript" "modules_insmod" ];
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|