Skip to content

Commit

Permalink
make-disk-image.nix: Really fix write permissions in the store
Browse files Browse the repository at this point in the history
I think the current one applies the -exec only to those that match
'-type d'. Let's switch it to something that humans can understand...
  • Loading branch information
dezgeg committed Dec 20, 2017
1 parent 3c82e6f commit 758b4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/lib/make-disk-image.nix
Expand Up @@ -130,7 +130,7 @@ let format' = format; in let
fakeroot nixos-prepare-root $root ${channelSources} ${config.system.build.toplevel} closure
# fakeroot seems to always give the owner write permissions, which we do not want
find $root/nix/store -mindepth 1 -maxdepth 1 -type f -o -type d -exec chmod -R a-w '{}' \;
find $root/nix/store -mindepth 1 -maxdepth 1 -type f -o -type d | xargs chmod -R a-w
echo "copying staging root to image..."
cptofs ${optionalString partitioned "-P 1"} -t ${fsType} -i $diskImage $root/* /
Expand Down

0 comments on commit 758b4c1

Please sign in to comment.