]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-vserver-fixes.patch
outdated
[packages/rc-scripts.git] / rc-scripts-vserver-fixes.patch
1 Index: 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
24 Index: 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.036509 seconds and 3 git commands to generate.