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.

Changed files
+3 -10
nixos
modules
system
+3 -10
nixos/modules/system/boot/stage-1.nix
···
# 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 {