nixos/lib/make-squashfs: set root mode to 0755

default is 0777 which is likely undesirable in all situations
This commit is contained in:
Adam C. Stephens 2024-12-08 10:04:51 -05:00
parent 58872406ef
commit da18b9bc79
No known key found for this signature in database

View file

@ -50,7 +50,7 @@ stdenv.mkDerivation {
# Generate the squashfs image.
mksquashfs nix-path-registration $(cat $closureInfo/store-paths) $imgPath ${pseudoFilesArgs} \
-no-hardlinks ${lib.optionalString noStrip "-no-strip"} -keep-as-directory -all-root -b 1048576 ${compFlag} \
-processors $NIX_BUILD_CORES
-processors $NIX_BUILD_CORES -root-mode 0755
'' + lib.optionalString hydraBuildProduct ''
mkdir -p $out/nix-support