busybox: persistent debug logs...

This commit is contained in:
Stefan Saraev 2013-07-13 15:44:41 +03:00
parent 8d0a3f6303
commit 9bed3684ff
2 changed files with 10 additions and 2 deletions

View File

@ -32,3 +32,13 @@ progress "mounting needed filesystems"
mount -n -t tmpfs -o size=10m tmpfs /var
mount -n -t debugfs debugfs /sys/kernel/debug
if [ ! "$RUNLEVEL" = "installer" -a "$DEBUG" = "yes" ]; then
mkdir -p $HOME/log
ln -sf $HOME/log /var/log
else
mkdir -p /var/log
fi
touch /var/log/wtmp
chmod 1777 /var/log/wtmp

View File

@ -21,10 +21,8 @@
d /var/cache 0755 root root 10d -
d /var/lib 0755 root root 10d -
d /var/lock 0755 root root 10d -
d /var/log 0755 root root 10d -
d /var/media 0755 root root 10d -
d /var/run 1777 root root 10d -
d /var/tmp 1777 root root 10d -
f /var/run/utmp 1777 root root 10d -
f /var/log/wtmp 1777 root root 10d -