Skip to content

Commit

Permalink
Display QEMU version
Browse files Browse the repository at this point in the history
Display QEMU version
  • Loading branch information
kroese committed May 25, 2023
2 parents 22326ed + 9304658 commit fc467df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ trap 'error "Status $? while: ${BASH_COMMAND} (line $LINENO/$BASH_LINENO)"' ERR
STORAGE="/storage"
KERNEL=$(uname -r | cut -b 1)
ARCH=$(dpkg --print-architecture)
VERS=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1)

[ ! -d "$STORAGE" ] && error "Storage folder (${STORAGE}) not found!" && exit 13

Expand Down Expand Up @@ -85,7 +86,7 @@ trap - ERR

set -m
(
[[ "${DEBUG}" == [Yy1]* ]] && set -x
[[ "${DEBUG}" == [Yy1]* ]] && info "$VERS" && set -x
qemu-system-x86_64 ${ARGS:+ $ARGS} & echo $! > "${_QEMU_PID}"
{ set +x; } 2>/dev/null
)
Expand Down

0 comments on commit fc467df

Please sign in to comment.