Commit 1d82583c authored by Franco Fichtner's avatar Franco Fichtner

rc: always restore native /var layout on boot

(cherry picked from commit 9eeca340)
parent d966c68b
......@@ -203,9 +203,11 @@ else
remove_mfs_link /root /var crash
fi
# make some directories in /var
mkdir -p /var/run /var/log /var/etc /var/db/entropy /var/at/jobs \
/var/empty /var/tmp /var/crash /var/cron/tabs
# ensure default directories in /var
mtree -deiU -f /etc/mtree/BSD.var.dist -p /var > /dev/null
# old config files are stored in this place
mkdir -p /var/etc
# work around the fact that shutdown(8) doesn't clean up this file
rm -f /var/run/nologin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment