From 5ccf19cab8c36f6a5776276fcb83436c04c34fca Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sat, 23 Mar 2024 12:58:51 +0000 Subject: [PATCH] nixos/colony: Fix LVM activatio dependency cycle --- nixos/boxes/colony/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/boxes/colony/default.nix b/nixos/boxes/colony/default.nix index 1566b8a..86b2e23 100644 --- a/nixos/boxes/colony/default.nix +++ b/nixos/boxes/colony/default.nix @@ -150,12 +150,12 @@ in "serial-getty@ttyS1".enable = true; lvm-activate-main = { description = "Activate remaining LVs"; - before = [ "local-fs-pre.target" ]; + unitConfig.DefaultDependencies = false; serviceConfig = { Type = "oneshot"; ExecStart = "${pkgs.lvm2.bin}/bin/vgchange -aay main"; }; - wantedBy = [ "sysinit.target" ]; + wantedBy = [ "local-fs-pre.target" ]; }; rsync-lvm-meta = {