* 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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@postMountCommands@
|
||||||
|
|
||||||
|
|
||||||
# Stop udevd.
|
# Stop udevd.
|
||||||
kill $(minips -C udevd -o pid=)
|
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 {
|
fileSystems = mkOption {
|
||||||
options.neededForBoot = mkOption {
|
options.neededForBoot = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -223,7 +232,7 @@ let
|
||||||
|
|
||||||
inherit (config.boot) isLiveCD resumeDevice;
|
inherit (config.boot) isLiveCD resumeDevice;
|
||||||
|
|
||||||
inherit (config.boot.initrd) checkJournalingFS;
|
inherit (config.boot.initrd) checkJournalingFS postMountCommands;
|
||||||
|
|
||||||
# !!! copy&pasted from upstart-jobs/filesystems.nix.
|
# !!! copy&pasted from upstart-jobs/filesystems.nix.
|
||||||
mountPoints =
|
mountPoints =
|
||||||
|
|
Loading…
Reference in a new issue