feat: Print system info to log (#400)

This commit is contained in:
Kroese 2024-04-20 01:50:49 +02:00 committed by GitHub
parent 1f07402717
commit 60107560ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,13 +21,9 @@ cd /run
trap - ERR
info "Booting $APP using $VERS..."
info "Booting ${APP}${BOOT_DESC} on ${CPU} using QEMU v${VERS} with kernel $(uname -r)..."
[[ "$DEBUG" == [Yy1]* ]] && echo "Arguments: $ARGS" && echo
if [[ "$CONSOLE" == [Yy]* ]]; then
exec qemu-system-x86_64 ${ARGS:+ $ARGS}
fi
{ qemu-system-x86_64 ${ARGS:+ $ARGS} >"$QEMU_OUT" 2>"$QEMU_LOG"; rc=$?; } || :
(( rc != 0 )) && error "$(<"$QEMU_LOG")" && exit 15