Linux-VServer pastebin service

Posted by daniel_hozac on Wed 2nd Dec 12:09
download | new post

  1. Index: scripts/vserver.functions  
  2. ===================================================================  
  3. --- scripts/vserver.functions   (revision 2849)  
  4. +++ scripts/vserver.functions   (working copy)  
  5.  -918,6 +918,10 @@  
  6.      # magic regarding the mtab file; when etc/mtab can not be touched,  
  7.      # add the '-n' flag to mount  
  8.      test -w etc -o -w etc/mtab || xflag=-n  
  9. +    if test -h etc/mtab; then  
  10. +       local l=$($_READLINK etc/mtab)  
  11. +       test "${l##/proc/}" = "$l" || xflag=-n  
  12. +    fi  
  13.      "$@" $_SECURE_MOUNT -a $xflag --chroot --fstab "$fstab" --rootfs no  
  14.      popd >/dev/null  
  15.  } 

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
Your Name

Remember my name in a cookie