Commit 76a6b0c4 authored by Eugene Kolomeetz's avatar Eugene Kolomeetz Committed by Pavel Emelyanov

scripts: call readlink in CT context in systemd-autofs-restart.sh

Now readlink is called in host context, this is obviously wrong.
Signed-off-by: 's avatarEugene Kolomeetz <klm@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 1525aee1
...@@ -37,7 +37,7 @@ fi ...@@ -37,7 +37,7 @@ fi
JOIN_CT="$NS_ENTER -t $CRTOOLS_INIT_PID -m -u -p" JOIN_CT="$NS_ENTER -t $CRTOOLS_INIT_PID -m -u -p"
# Skip container, if it's not systemd based # Skip container, if it's not systemd based
[ "$($JOIN_CT basename -- $(readlink /proc/1/exe))" == "systemd" ] || exit 0 [ "$($JOIN_CT basename -- $($JOIN_CT readlink /proc/1/exe))" == "systemd" ] || exit 0
AUTOFS_SERVICES="proc-sys-fs-binfmt_misc.automount" AUTOFS_SERVICES="proc-sys-fs-binfmt_misc.automount"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment