about summary refs log tree commit diff
path: root/nixos/modules/system/boot/grow-partition.nix
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2023-11-30 15:09:59 -0800
committerPhilip Taron <philip.taron@gmail.com>2023-11-30 15:09:59 -0800
commite4136ed6dd7612043a62aea89eeb3c4f3ea549e5 (patch)
treed172f21b7cbe158618bc49581fe59985fda57fa7 /nixos/modules/system/boot/grow-partition.nix
parent5ab8a128deb592b1c509b45e9a8b68442f9b262e (diff)
nixos/growpart: ensure correct ordering w.r.t. shutdown.target
Diffstat (limited to 'nixos/modules/system/boot/grow-partition.nix')
-rw-r--r--nixos/modules/system/boot/grow-partition.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/grow-partition.nix b/nixos/modules/system/boot/grow-partition.nix
index 897602f9826ab..8a0fc3a03dac4 100644
--- a/nixos/modules/system/boot/grow-partition.nix
+++ b/nixos/modules/system/boot/grow-partition.nix
@@ -25,7 +25,7 @@ with lib;
     systemd.services.growpart = {
       wantedBy = [ "-.mount" ];
       after = [ "-.mount" ];
-      before = [ "systemd-growfs-root.service" ];
+      before = [ "systemd-growfs-root.service" "shutdown.target" ];
       conflicts = [ "shutdown.target" ];
       unitConfig.DefaultDependencies = false;
       serviceConfig = {