set mount ns propagation to slave

This commit is contained in:
vvb2060 2024-01-07 12:57:41 +08:00 committed by 南宫雪珊
parent 94d8a518cc
commit df74d83eb0
3 changed files with 2 additions and 4 deletions

View File

@ -7,11 +7,9 @@ flavor=@FLAVOR@
if [ -r $tmpLspdApk ]; then
java_options="-Djava.class.path=$tmpLspdApk"
java_options="$java_options -Dlsp.library.path=/data/local/tmp"
debug="true"
else
java_options="-Djava.class.path=$dir/daemon.apk"
java_options="$java_options -Dlsp.library.path=$dir"
fi
if [ $debug = "true" ]; then

View File

@ -23,4 +23,4 @@ rm -f "/data/local/tmp/daemon.apk"
rm -f "/data/local/tmp/manager.apk"
cd "$MODDIR"
unshare -m sh -c "$MODDIR/daemon $@&"
unshare --propagation slave -m sh -c "$MODDIR/daemon $@&"

View File

@ -20,4 +20,4 @@
MODDIR=${0%/*}
cd "$MODDIR"
# post-fs-data.sh may be blocked by other modules. retry to start this
unshare -m sh -c "$MODDIR/daemon --from-service $@&"
unshare --propagation slave -m sh -c "$MODDIR/daemon --from-service $@&"