[CRIU] [PATCH] scripts: join pid namespace in systemd-autofs-restart.sh

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Thu Apr 21 09:54:35 PDT 2016


Without correct pid namespace systemctl is not able to determine whether
autofs is active or not.
The reason is unaccessible proc due to mount namespace change without pid
namespace change.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
 scripts/systemd-autofs-restart.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/systemd-autofs-restart.sh b/scripts/systemd-autofs-restart.sh
index 205a96b..9d9e2f3 100755
--- a/scripts/systemd-autofs-restart.sh
+++ b/scripts/systemd-autofs-restart.sh
@@ -34,7 +34,7 @@ if [ ! -x $NS_ENTER ]; then
 	exit 2
 fi
 
-JOIN_CT="$NS_ENTER -t $CRTOOLS_INIT_PID -m -u"
+JOIN_CT="$NS_ENTER -t $CRTOOLS_INIT_PID -m -u -p"
 
 # Skip container, if it's not systemd based
 [ $($JOIN_CT basename -- $(readlink /proc/1/exe)) == "systemd" ] || exit 0



More information about the CRIU mailing list