* 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:
parent
97f5a8eda7
commit
4bd1537860
@ -87,6 +87,12 @@ rm -rf /var/run
|
|||||||
#rm -rf --one-file-system /tmp/*
|
#rm -rf --one-file-system /tmp/*
|
||||||
#echo " done"
|
#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
|
if test -n "$safeMode"; then
|
||||||
mkdir -m 0755 -p /var/run
|
mkdir -m 0755 -p /var/run
|
||||||
touch /var/run/safemode
|
touch /var/run/safemode
|
||||||
|
@ -121,7 +121,8 @@ mkdir -m 0755 -p \
|
|||||||
/nix/var/nix/profiles \
|
/nix/var/nix/profiles \
|
||||||
/nix/var/nix/db \
|
/nix/var/nix/db \
|
||||||
/nix/var/log/nix/drvs \
|
/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/gcroots/per-user
|
||||||
mkdir -m 1777 -p /nix/var/nix/profiles/per-user
|
mkdir -m 1777 -p /nix/var/nix/profiles/per-user
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user