From bd497703e30d08082525527634baa15c2c9d80a2 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 25 Dec 2024 17:09:06 +0100 Subject: fix(modules/impermanence): Don't always persist `/var/log` and `/var/lib/nixos` Persisting them, without marking the `/srv` containing fs as `neededForBoot` will result in a kernel panic in the init (because `impermanence` tries to mount these directories and fails as `/srv` is still missing.) Thus, each host, that sets `/srv` to `neededForBoot` should add these directories to `vhack.persist.directories`. --- modules/by-name/im/impermanence/module.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/by-name/im/impermanence/module.nix b/modules/by-name/im/impermanence/module.nix index d645bcb..1c916e2 100644 --- a/modules/by-name/im/impermanence/module.nix +++ b/modules/by-name/im/impermanence/module.nix @@ -20,11 +20,6 @@ in { directories = [ "/etc/nixos" - "/var/log" - - # TODO(@bpeetz): Instead of persisting that, encode each uid/gid directly in the - # config. <2024-12-24> - "/var/lib/nixos" ] ++ cfg.directories; files = [ -- cgit 1.4.1