]> git.pld-linux.org Git - packages/rc-scripts.git/blame - rc-scripts-vserver-fixes.patch
outdated
[packages/rc-scripts.git] / rc-scripts-vserver-fixes.patch
CommitLineData
6ee1468f
JR
1Index: rc.d/rc.sysinit
2===================================================================
3--- rc.d/rc.sysinit (revision 6539)
4+++ rc.d/rc.sysinit (working copy)
5@@ -377,14 +377,14 @@
6 done
7 fi
8
9-# Clear mtab
10-:>/etc/mtab
11-[ -f /etc/cryptomtab ] && :>/etc/cryptomtab
12-
13 # Remove stale backups
14 rm -f /etc/mtab~ /etc/mtab~~ /etc/cryptomtab~ /etc/cryptomtab~~
15
16 if ! is_yes "$VSERVER"; then
17+ # Clear mtab
18+ :>/etc/mtab
19+ [ -f /etc/cryptomtab ] && :>/etc/cryptomtab
20+
21 # Enter root, /proc, /sys, devfs and other into mtab.
22 mount -f /
23 mount -f /proc
24Index: rc.d/init.d/functions
25===================================================================
26--- rc.d/init.d/functions (revision 6539)
27+++ rc.d/init.d/functions (working copy)
28@@ -52,7 +52,7 @@
29 [ -z "$COLUMNS" ] && COLUMNS=80
30
31 if [ -z "$VSERVER" -o "$VSERVER" = "detect" ]; then
32- _ctx="$(awk '/s_context:.*/ { print $2 }' /proc/self/status 2>/dev/null)"
33+ _ctx="$(awk '/(s_context|VxID):.*/ { print $2 }' /proc/self/status 2>/dev/null)"
34 if [ -z "$_ctx" -o "$_ctx" = "0" ]; then
35 VSERVER=no
36 else
This page took 0.052464 seconds and 4 git commands to generate.