diff options
author | Jan Malakhovski <oxij@oxij.org> | 2016-08-23 17:41:31 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2016-08-23 17:48:14 +0000 |
commit | 1266852fd8d8143bbe38caff65a3ea7577ffe04a (patch) | |
tree | dcce1b91abe30cd13c167c485243ce221ca7fca1 /nixos | |
parent | 363b0fd040ed58cbd394cebcfb6d2a77b9672d5f (diff) | |
download | nixlib-1266852fd8d8143bbe38caff65a3ea7577ffe04a.tar nixlib-1266852fd8d8143bbe38caff65a3ea7577ffe04a.tar.gz nixlib-1266852fd8d8143bbe38caff65a3ea7577ffe04a.tar.bz2 nixlib-1266852fd8d8143bbe38caff65a3ea7577ffe04a.tar.lz nixlib-1266852fd8d8143bbe38caff65a3ea7577ffe04a.tar.xz nixlib-1266852fd8d8143bbe38caff65a3ea7577ffe04a.tar.zst nixlib-1266852fd8d8143bbe38caff65a3ea7577ffe04a.zip |
Revert a soon to be useless pice of "nixos/stage-1: add mechanism which lustrates all impurities from / (#17784)"
This reverts a pice of commit 3d16af70bf894ce15ec9bdcad3c9ac736dc43630.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index 9be7ad4ae077..baeba1d6b31d 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -131,16 +131,9 @@ let # The initrd only has to mount / or any FS marked as necessary for # booting (such as the FS containing /nix/store, or an FS needed for # mounting /, like / on a loopback). - # - # We need to guarantee that / is the first filesystem in the list so - # that if and when lustrateRoot is invoked, nothing else is mounted - fileSystems = let - filterNeeded = filter - (fs: fs.mountPoint != "/" && (fs.neededForBoot || elem fs.mountPoint [ "/nix" "/nix/store" "/var" "/var/log" "/var/lib" "/etc" ])); - filterRoot = filter - (fs: fs.mountPoint == "/"); - allFileSystems = attrValues config.fileSystems; - in (filterRoot allFileSystems) ++ (filterNeeded allFileSystems); + fileSystems = filter + (fs: fs.neededForBoot || elem fs.mountPoint [ "/" "/nix" "/nix/store" "/var" "/var/log" "/var/lib" "/etc" ]) + (attrValues config.fileSystems); udevRules = pkgs.stdenv.mkDerivation { |