0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

nixos: generalize copy-paste from stage-1 and zfs to utils

This commit is contained in:
Jan Malakhovski 2016-08-23 18:01:35 +00:00
parent 8da59c406c
commit b267785c43
3 changed files with 6 additions and 6 deletions

View file

@ -26,9 +26,7 @@ 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).
fileSystems = filter
(fs: fs.neededForBoot || elem fs.mountPoint [ "/" "/nix" "/nix/store" "/var" "/var/log" "/var/lib" "/etc" ])
config.system.build.fileSystems;
fileSystems = filter utils.fsNeededForBoot config.system.build.fileSystems;
# Some additional utilities needed in stage 1, like mount, lvm, fsck