Skip to content

Commit

Permalink
Fix get TINI_PID and show WHICH_AUTORUN0ARG errors
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Feb 16, 2025
1 parent 74aec36 commit e8a7ce7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname='runimage-utils'
pkgver='0.40.6'
pkgrel='1'
pkgrel='2'
pkgdesc='Utilities and scripts for RunImage container'
url="https://github.com/VHSgunzo/runimage"
arch=('any')
Expand Down
4 changes: 2 additions & 2 deletions rootfs/var/RunDir/Run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,7 @@ check_autorun() {
WHICH_AUTORUN0ARG=($(IFS="$OLD_IFS" \
RIM_NO_NVIDIA_CHECK=1 RIM_WAIT_RPIDS_EXIT=0 RIM_NO_RPIDSMON=1 \
RIM_QUIET_MODE=1 RIM_SANDBOX_NET=0 RIM_NO_BWRAP_OVERLAY=1 \
"${archeck_cmd[@]}" which -a "$AUTORUN0ARG" 2>/dev/null </dev/null))
"${archeck_cmd[@]}" which -a "$AUTORUN0ARG" </dev/null))
IFS="$OLD_IFS"
unset REALAUTORUN
for exe in "${WHICH_AUTORUN0ARG[@]}"
Expand Down Expand Up @@ -2733,7 +2733,7 @@ if [ "$RIM_NO_RPIDSMON" != 1 ]
if [[ ! -f "$TINI_PIDFL" && -f "$RPIDSFL" ]]
then
TINI_PID="$(ps -opid=,cmd= -p $(cat "$RPIDSFL" 2>/dev/null) 2>/dev/null|\
grep '^[0-9]* /var/RunDir/static/tini'|gawk '{print$1}')"
grep '^ [0-9]* /var/RunDir/static/tini'|gawk '{print$1}')"
[ -n "$TINI_PID" ] && echo "$TINI_PID" > "$TINI_PIDFL"
fi
fi
Expand Down

0 comments on commit e8a7ce7

Please sign in to comment.