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:
parent
272d641f0c
commit
bf21bbcf01
@ -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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user