* 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:
parent
c46dc8ad10
commit
e08e7aedbc
|
@ -266,6 +266,9 @@ if test -n "@isLiveCD@"; then
|
|||
fi
|
||||
|
||||
|
||||
@postMountCommands@
|
||||
|
||||
|
||||
# Stop udevd.
|
||||
kill $(minips -C udevd -o pid=)
|
||||
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue