diff --git a/scripts/ablrun_part b/scripts/ablrun_part index af180fb..33f9ef1 100755 --- a/scripts/ablrun_part +++ b/scripts/ablrun_part @@ -83,7 +83,7 @@ ablrun_nocap() { } ablrun_nocap_noreplace() { - exec bwrap \ + bwrap \ --dev-bind / / \ --bind /usr/${ABL_DIR_PREFIX}/additional-base-lib/"$ABL_TARGET_LD_SO_PATH" "$ABL_LD_SO_PATH" \ --bind /usr/${ABL_DIR_PREFIX}/additional-base-lib/libc.so.6 "$ABL_LIBC_SO_PATH" \ @@ -141,6 +141,7 @@ then ablrun_nocap_noreplace "$ABLIMAGE_DIR/AppRun" "${ABLIMAGE_PARAMETERS[@]:1}" # Use coproc, so no exec here. + kill "$ABLIMAGE_PID" exit fi fi