Skip to content

Commit

Permalink
check_run_systemd_journal_socket: add fail case for socket
Browse files Browse the repository at this point in the history
If host do not have the socket, let's fail right away

Signed-off-by: Douglas Landgraf <[email protected]>
  • Loading branch information
dougsland committed Sep 13, 2024
1 parent a0a1cac commit 30c4e3d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
. ../../../e2e/lib/utils

check_run_systemd_journal_socket_inode_number(){

if [ ! -e /run/systemd/journal/socket ]; then
info_message "FAIL: Path /run/systemd/journal/socket does not exist. Exiting."
exit 1
fi

# Get inode number of /run/systemd/journal/socket inside and outside of the QM partition.
inode_number_in_host=$(stat --printf='%i' /run/systemd/journal/socket)
inode_number_in_qm=$(podman exec qm stat --printf='%i' /run/systemd/journal/socket)
Expand Down

0 comments on commit 30c4e3d

Please sign in to comment.