Skip to content

Commit

Permalink
nixos/etc-overlay: fix chmod call in activation script
Browse files Browse the repository at this point in the history
Fixes #373691
  • Loading branch information
r-vdp committed Jan 14, 2025
1 parent 1ed5f53 commit e5b0c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/system/etc/etc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e5b0c41

Please sign in to comment.