summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-11-15 16:28:22 +0200
committerArtturin <Artturin@artturin.com>2021-11-15 16:28:22 +0200
commit83f892c511f0b647302d03af35955ba28d816073 (patch)
tree2c4d564a07f982ae82484fd1c87f3eb3c95f8050
parent0d67f33cbea744efd06b0309ecb36f84a082c827 (diff)
downloadnixpkgs-83f892c511f0b647302d03af35955ba28d816073.tar
nixpkgs-83f892c511f0b647302d03af35955ba28d816073.tar.gz
nixpkgs-83f892c511f0b647302d03af35955ba28d816073.tar.bz2
nixpkgs-83f892c511f0b647302d03af35955ba28d816073.tar.lz
nixpkgs-83f892c511f0b647302d03af35955ba28d816073.tar.xz
nixpkgs-83f892c511f0b647302d03af35955ba28d816073.tar.zst
nixpkgs-83f892c511f0b647302d03af35955ba28d816073.zip
nixos/lib: add /usr to pathsNeededForBoot
if /usr is split from root then it has to be mounted at boot
See https://github.com/NixOS/nixpkgs/issues/146115
-rw-r--r--nixos/lib/utils.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/utils.nix b/nixos/lib/utils.nix
index 439b627dc38..f1fa9f07a97 100644
--- a/nixos/lib/utils.nix
+++ b/nixos/lib/utils.nix
@@ -10,7 +10,7 @@ rec {
   # Check whenever fileSystem is needed for boot.  NOTE: Make sure
   # pathsNeededForBoot is closed under the parent relationship, i.e. if /a/b/c
   # is in the list, put /a and /a/b in as well.
-  pathsNeededForBoot = [ "/" "/nix" "/nix/store" "/var" "/var/log" "/var/lib" "/var/lib/nixos" "/etc" ];
+  pathsNeededForBoot = [ "/" "/nix" "/nix/store" "/var" "/var/log" "/var/lib" "/var/lib/nixos" "/etc" "/usr" ];
   fsNeededForBoot = fs: fs.neededForBoot || elem fs.mountPoint pathsNeededForBoot;
 
   # Check whenever `b` depends on `a` as a fileSystem