From e5b0c411a43459b42afb28a995d912b94841e777 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Tue, 14 Jan 2025 12:43:03 +0100 Subject: [PATCH] nixos/etc-overlay: fix chmod call in activation script Fixes #373691 --- nixos/modules/system/etc/etc.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/system/etc/etc.nix b/nixos/modules/system/etc/etc.nix index 7c7db061359c3..9e04467fd8024 100644 --- a/nixos/modules/system/etc/etc.nix +++ b/nixos/modules/system/etc/etc.nix @@ -268,10 +268,10 @@ in ${lib.optionalString config.system.etc.overlay.mutable '' # These directories are usually created in initrd, - # but we need to create them here when we didn't we're called directly, + # but we need to create them here when we're called directly, # for instance by nixos-enter mkdir --parents /.rw-etc/upper /.rw-etc/work - chmod --recursive 0755 /.rw-etc + chmod 0755 /.rw-etc /.rw-etc/upper /.rw-etc/work ''} tmpMetadataMount=$(TMPDIR="/run" mktemp --directory -t nixos-etc-metadata.XXXXXXXXXX)