projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
fa408b6
)
/proc/mounts is apparently writeable.
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Wed, 2 Dec 2009 11:13:49 +0000 (11:13 +0000)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Wed, 2 Dec 2009 11:13:49 +0000 (11:13 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2869
94cd875c
-1c1d-0410-91d2-
eb244daf1a30
scripts/vserver.functions
patch
|
blob
|
history
diff --git
a/scripts/vserver.functions
b/scripts/vserver.functions
index
2e8897e
..
626cd07
100644
(file)
--- a/
scripts/vserver.functions
+++ b/
scripts/vserver.functions
@@
-918,6
+918,10
@@
function _mountVserverInternal
# magic regarding the mtab file; when etc/mtab can not be touched,
# add the '-n' flag to mount
test -w etc -o -w etc/mtab || xflag=-n
+ if test -h etc/mtab; then
+ local l=$($_READLINK etc/mtab)
+ test "${l##/proc/}" = "$l" || xflag=-n
+ fi
"$@" $_SECURE_MOUNT -a $xflag --chroot --fstab "$fstab" --rootfs no
popd >/dev/null
}