diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-07-19 17:23:27 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-07-19 17:24:18 +0200 |
commit | bf21bbcf015c7cb9004c2553ece2529ae165d8a6 (patch) | |
tree | d8d2eed83ec87894f10efb9920277a38baf372c6 /modules/system/boot/stage-1.nix | |
parent | 272d641f0cd98edaba497c81884bb1fbaf1df8e1 (diff) | |
download | nixpkgs-bf21bbcf015c7cb9004c2553ece2529ae165d8a6.tar nixpkgs-bf21bbcf015c7cb9004c2553ece2529ae165d8a6.tar.gz nixpkgs-bf21bbcf015c7cb9004c2553ece2529ae165d8a6.tar.bz2 nixpkgs-bf21bbcf015c7cb9004c2553ece2529ae165d8a6.tar.lz nixpkgs-bf21bbcf015c7cb9004c2553ece2529ae165d8a6.tar.xz nixpkgs-bf21bbcf015c7cb9004c2553ece2529ae165d8a6.tar.zst nixpkgs-bf21bbcf015c7cb9004c2553ece2529ae165d8a6.zip |
Mount /var and some other filesystems automatically in stage 1
Bad things happen if /var is mounted in a late stage.
Diffstat (limited to 'modules/system/boot/stage-1.nix')
-rw-r--r-- | modules/system/boot/stage-1.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/boot/stage-1.nix b/modules/system/boot/stage-1.nix index f78a5dda2d3..0779ab2c979 100644 --- a/modules/system/boot/stage-1.nix +++ b/modules/system/boot/stage-1.nix @@ -249,7 +249,7 @@ let # booting (such as the FS containing /nix/store, or an FS needed for # mounting /, like / on a loopback). fileSystems = filter - (fs: fs.mountPoint == "/" || fs.mountPoint == "/nix" || fs.mountPoint == "/nix/store" || fs.neededForBoot) + (fs: fs.neededForBoot || elem fs.mountPoint [ "/" "/nix" "/nix/store" "/var" "/var/log" "/var/lib" "/etc" ]) (attrValues config.fileSystems); |