* Create /nix/var/nix/chroots in the activation script

and re-create it at boot time.

svn path=/nixos/trunk/; revision=13152
This commit is contained in:
Eelco Dolstra 2008-10-29 15:43:37 +00:00
parent 97f5a8eda7
commit 4bd1537860
2 changed files with 8 additions and 1 deletions

View file

@ -87,6 +87,12 @@ rm -rf /var/run
#rm -rf --one-file-system /tmp/*
#echo " done"
# This is a good time to clean up /nix/var/nix/chroots. Doing an `rm
# -rf' on it isn't safe in general because it can contain bind mounts
# to /nix/store and other places. But after rebooting these are all
# gone, of course.
rm -rf /nix/var/nix/chroots # recreated in activate-configuration.sh
if test -n "$safeMode"; then
mkdir -m 0755 -p /var/run
touch /var/run/safemode

View file

@ -121,7 +121,8 @@ mkdir -m 0755 -p \
/nix/var/nix/profiles \
/nix/var/nix/db \
/nix/var/log/nix/drvs \
/nix/var/nix/channel-cache
/nix/var/nix/channel-cache \
/nix/var/nix/chroots
mkdir -m 1777 -p /nix/var/nix/gcroots/per-user
mkdir -m 1777 -p /nix/var/nix/profiles/per-user