diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2011-04-21 03:17:48 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-04-21 03:33:11 +0200 |
commit | ed268a1f2eb2dd70f0372144a692d22cf1f995ac (patch) | |
tree | ea560569175757223dc9bd6da0c706831a731587 /enable-exec-in-new-partition.patch | |
parent | a4dfb7038dd60a271d6b44672ed0f0dc77e217a8 (diff) | |
download | autopatch-util-vserver-master.tar.gz autopatch-util-vserver-master.tar.bz2 autopatch-util-vserver-master.zip |
to support vserver ... exec for vserver with an own partition, the namespace
is entered early during execution to find files in the vserver
Diffstat (limited to 'enable-exec-in-new-partition.patch')
-rw-r--r-- | enable-exec-in-new-partition.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/enable-exec-in-new-partition.patch b/enable-exec-in-new-partition.patch new file mode 100644 index 0000000..fca5bb7 --- /dev/null +++ b/enable-exec-in-new-partition.patch @@ -0,0 +1,11 @@ +--- vserver 2011-04-21 03:09:34.000000000 +0200 ++++ /usr/sbin/vserver 2011-04-21 03:12:45.000000000 +0200 +@@ -208,7 +208,7 @@ + . $__PKGLIBDIR/vserver.functions + + # Enter the namespace early so we can test for files inside the guest +-test "$cmd" != enter -a "$cmd" != stop || \ ++test "$cmd" != enter -a "$cmd" != stop -a "$cmd" != exec || \ + test -n "$OPTION_NONAMESPACE" || isAvoidNamespace "$VSERVER_DIR" || \ + ! isVserverRunning "$VSERVER_DIR" || { + $_VNAMESPACE --enter "$VSERVER_DIR" -- $_VSERVER ----nonamespace "${OPTIONS_ORIG[@]}" |