Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support in QM image #508

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions tests/e2e/set-ffi-env-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,29 @@ then
exit
fi

echo
info_message "Checking if QM already installed"
info_message "=============================="
QM_STATUS="$(systemctl is-enabled qm 2>&1)"
Yarboa marked this conversation as resolved.
Show resolved Hide resolved
if [ "$QM_STATUS" == "generated" ]; then
if [ "$(systemctl is-active qm)" == "active" ]; then
info_message "QM Enabled and Active"
info_message "=============================="
exit 0
fi
if test -d /var/qm -a -d /etc/qm ; then
info_message "QM Enabled and not Active"
info_message "=============================="
exit 1
fi
fi

if stat /run/ostree-booted > /dev/null 2>&1; then
info_message "Warning: script can not run on ostree image"
info_message "=============================="
exit 0
fi

info_message "Cleaning any previous e2e files"
info_message "=============================="
cleanup
Expand Down
Loading