Mount /var and some other filesystems automatically in stage 1

Bad things happen if /var is mounted in a late stage.
This commit is contained in:
Eelco Dolstra 2013-07-19 17:23:27 +02:00
parent 272d641f0c
commit bf21bbcf01

View File

@ -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);