about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2024-06-13 17:01:35 +0200
committerGitHub <noreply@github.com>2024-06-13 17:01:35 +0200
commit2d1550114196cfd619e24594ad956f3a072cfbe1 (patch)
treec30a227ff1816684f8aa6369d016c61f8a9b38ce /nixos/tests
parent3a0f9c609a6e610cb02f5cc0610fe26567938c1f (diff)
parent1b288bca003d5c9edc851bbf268c43591cea3aac (diff)
Merge pull request #314579 from ivan770/etc-direct-symlinks
nixos/etc: support direct symlinks with etc overlay
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/activation/etc-overlay-immutable.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/activation/etc-overlay-immutable.nix b/nixos/tests/activation/etc-overlay-immutable.nix
index f347f9cf8efe2..f0abf70d350ff 100644
--- a/nixos/tests/activation/etc-overlay-immutable.nix
+++ b/nixos/tests/activation/etc-overlay-immutable.nix
@@ -13,6 +13,7 @@
     users.mutableUsers = false;
     boot.initrd.systemd.enable = true;
     boot.kernelPackages = pkgs.linuxPackages_latest;
+    time.timeZone = "Utc";
 
     specialisation.new-generation.configuration = {
       environment.etc."newgen".text = "newgen";
@@ -23,6 +24,9 @@
     with subtest("/etc is mounted as an overlay"):
       machine.succeed("findmnt --kernel --type overlay /etc")
 
+    with subtest("direct symlinks point to the target without indirection"):
+      assert machine.succeed("readlink -n /etc/localtime") == "/etc/zoneinfo/Utc"
+
     with subtest("switching to the same generation"):
       machine.succeed("/run/current-system/bin/switch-to-configuration test")