From a4f7868edf40fde2acdca1118a338963e52124fe Mon Sep 17 00:00:00 2001 From: r-vdp Date: Wed, 16 Oct 2024 17:33:44 +0200 Subject: [PATCH] nixos/etc-overlay: fix VM test for immutable overlay --- nixos/tests/activation/etc-overlay-immutable.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/tests/activation/etc-overlay-immutable.nix b/nixos/tests/activation/etc-overlay-immutable.nix index 2e5389f20227..601ac77cbd84 100644 --- a/nixos/tests/activation/etc-overlay-immutable.nix +++ b/nixos/tests/activation/etc-overlay-immutable.nix @@ -15,6 +15,10 @@ boot.kernelPackages = pkgs.linuxPackages_latest; time.timeZone = "Utc"; + # The standard resolvconf service tries to write to /etc and crashes, + # which makes nixos-rebuild exit uncleanly when switching into the new generation + services.resolved.enable = true; + environment.etc = { "mountpoint/.keep".text = "keep"; "filemount".text = "keep";