From d98ecd1d9e92fbb331242d0bc19fc2d8798a23f4 Mon Sep 17 00:00:00 2001 From: Florian Friesdorf Date: Wed, 28 Dec 2011 21:46:35 +0000 Subject: [PATCH] enable testing of extraUtilsCommands after patchelf svn path=/nixos/trunk/; revision=31127 --- modules/system/boot/stage-1.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/system/boot/stage-1.nix b/modules/system/boot/stage-1.nix index b5c71456067..185ca1cb516 100644 --- a/modules/system/boot/stage-1.nix +++ b/modules/system/boot/stage-1.nix @@ -65,6 +65,18 @@ let ''; }; + boot.initrd.extraUtilsCommandsTest = mkOption { + internal = true; + default = ""; + merge = mergeStringOption; + description = '' + Shell commands to be executed in the builder of the + extra-utils derivation after patchelf has done its + job. This can be used to test additional utilities + copied in extraUtilsCommands. + ''; + }; + fileSystems = mkOption { options.neededForBoot = mkOption { default = false; @@ -213,6 +225,8 @@ let $out/bin/mdadm --version $out/bin/basename --version $out/bin/modprobe --version + + ${config.boot.initrd.extraUtilsCommandsTest} ''; # */