* Option boot.initrd.postMountCommands to specify additional shell

commands for in stage 1 of the boot.

svn path=/nixos/branches/modular-nixos/; revision=15998
This commit is contained in:
Eelco Dolstra 2009-06-18 16:03:18 +00:00
parent c46dc8ad10
commit e08e7aedbc
2 changed files with 13 additions and 1 deletions

View file

@ -266,6 +266,9 @@ if test -n "@isLiveCD@"; then
fi
@postMountCommands@
# Stop udevd.
kill $(minips -C udevd -o pid=)

View file

@ -62,6 +62,15 @@ let
'';
};
boot.initrd.postMountCommands = mkOption {
default = "";
merge = pkgs.lib.mergeStringOption;
description = ''
Shell commands to be executed immediately after the stage 1
filesystems has been mounted.
'';
};
fileSystems = mkOption {
options.neededForBoot = mkOption {
default = false;
@ -223,7 +232,7 @@ let
inherit (config.boot) isLiveCD resumeDevice;
inherit (config.boot.initrd) checkJournalingFS;
inherit (config.boot.initrd) checkJournalingFS postMountCommands;
# !!! copy&pasted from upstart-jobs/filesystems.nix.
mountPoints =