mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
scripts: join pid namespace in systemd-autofs-restart.sh
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@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
820c9d06ce
commit
63d61425b7
@@ -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
|
||||
|
Reference in New Issue
Block a user