* Fix the permissions on /tmp.
svn path=/nixos/trunk/; revision=28435
This commit is contained in:
@@ -127,6 +127,7 @@ let
|
|||||||
cp -v ${pkgs.coreutils}/bin/basename $out/bin
|
cp -v ${pkgs.coreutils}/bin/basename $out/bin
|
||||||
cp -v ${pkgs.coreutils}/bin/mkdir $out/bin
|
cp -v ${pkgs.coreutils}/bin/mkdir $out/bin
|
||||||
cp -v ${pkgs.coreutils}/bin/mknod $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/cat $out/bin
|
||||||
cp -v ${pkgs.coreutils}/bin/chroot $out/bin
|
cp -v ${pkgs.coreutils}/bin/chroot $out/bin
|
||||||
cp -v ${pkgs.coreutils}/bin/sleep $out/bin
|
cp -v ${pkgs.coreutils}/bin/sleep $out/bin
|
||||||
|
|||||||
@@ -272,6 +272,9 @@ in
|
|||||||
|
|
||||||
boot.initrd.postMountCommands =
|
boot.initrd.postMountCommands =
|
||||||
''
|
''
|
||||||
|
# Fix the permissions on /tmp.
|
||||||
|
chmod 1777 $targetRoot/tmp
|
||||||
|
|
||||||
mkdir -p $targetRoot/boot
|
mkdir -p $targetRoot/boot
|
||||||
mount -o remount,ro $targetRoot/nix/store
|
mount -o remount,ro $targetRoot/nix/store
|
||||||
${optionalString cfg.writableStore ''
|
${optionalString cfg.writableStore ''
|
||||||
|
|||||||
Reference in New Issue
Block a user