about summary refs log tree commit diff
path: root/nixos/modules/tasks/filesystems
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2022-04-17 13:55:48 +0100
committerJanne Heß <janne@hess.ooo>2022-04-24 16:32:54 +0200
commitacca69992cda719eb71f29f5c8eedf7892127e27 (patch)
treecb966274df02b7b899c8783760c83366cdf4aa5f /nixos/modules/tasks/filesystems
parent160fb93fdc4155d7e6304f366384ad8afb00db1e (diff)
downloadnixlib-acca69992cda719eb71f29f5c8eedf7892127e27.tar
nixlib-acca69992cda719eb71f29f5c8eedf7892127e27.tar.gz
nixlib-acca69992cda719eb71f29f5c8eedf7892127e27.tar.bz2
nixlib-acca69992cda719eb71f29f5c8eedf7892127e27.tar.lz
nixlib-acca69992cda719eb71f29f5c8eedf7892127e27.tar.xz
nixlib-acca69992cda719eb71f29f5c8eedf7892127e27.tar.zst
nixlib-acca69992cda719eb71f29f5c8eedf7892127e27.zip
nixos/btrfs: Add systemd stage 1 support
Diffstat (limited to 'nixos/modules/tasks/filesystems')
-rw-r--r--nixos/modules/tasks/filesystems/btrfs.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems/btrfs.nix b/nixos/modules/tasks/filesystems/btrfs.nix
index 33736e2043ac..b7ebc37dd5cf 100644
--- a/nixos/modules/tasks/filesystems/btrfs.nix
+++ b/nixos/modules/tasks/filesystems/btrfs.nix
@@ -78,7 +78,7 @@ in
         $out/bin/btrfs --version
       '';
 
-      boot.initrd.postDeviceCommands = mkIf inInitrd
+      boot.initrd.postDeviceCommands = mkIf (inInitrd && !config.boot.initrd.systemd.enable)
       ''
         btrfs device scan
       '';