From ed268a1f2eb2dd70f0372144a692d22cf1f995ac Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 21 Apr 2011 03:17:48 +0200 Subject: added script to support vserver ... exec for vserver with an own partition to support vserver ... exec for vserver with an own partition, the namespace is entered early during execution to find files in the vserver --- enable-exec-in-new-partition.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 enable-exec-in-new-partition.patch (limited to 'enable-exec-in-new-partition.patch') 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[@]}" -- cgit v1.2.3-1-g7c22