* Fix the permissions on /tmp.

svn path=/nixos/trunk/; revision=28435
This commit is contained in:
Eelco Dolstra 2011-08-09 15:32:39 +00:00
parent 5932de5c1a
commit 74586fd2bb
2 changed files with 4 additions and 0 deletions

View file

@ -127,6 +127,7 @@ let
cp -v ${pkgs.coreutils}/bin/basename $out/bin
cp -v ${pkgs.coreutils}/bin/mkdir $out/bin
cp -v ${pkgs.coreutils}/bin/mknod $out/bin
cp -v ${pkgs.coreutils}/bin/chmod $out/bin
cp -v ${pkgs.coreutils}/bin/cat $out/bin
cp -v ${pkgs.coreutils}/bin/chroot $out/bin
cp -v ${pkgs.coreutils}/bin/sleep $out/bin

View file

@ -272,6 +272,9 @@ in
boot.initrd.postMountCommands =
''
# Fix the permissions on /tmp.
chmod 1777 $targetRoot/tmp
mkdir -p $targetRoot/boot
mount -o remount,ro $targetRoot/nix/store
${optionalString cfg.writableStore ''