From c104b434b845e20ab9574de826dea439e37e8645 Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Fri, 2 Feb 2024 22:38:46 +0000 Subject: [PATCH] system-upgrade: fix journalctl exit code --- dnf5-plugins/system_upgrade_plugin/system_upgrade.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnf5-plugins/system_upgrade_plugin/system_upgrade.cpp b/dnf5-plugins/system_upgrade_plugin/system_upgrade.cpp index 7db696ae33..aa81fc2f4c 100644 --- a/dnf5-plugins/system_upgrade_plugin/system_upgrade.cpp +++ b/dnf5-plugins/system_upgrade_plugin/system_upgrade.cpp @@ -632,7 +632,7 @@ void show_log(size_t boot_index) { const auto & boot_id = boot_entries[boot_index].boot_id; const auto rc = call(PATH_TO_JOURNALCTL, {"--boot", boot_id}); - if (rc != 0) { + if (rc != 0 && rc != 1) { throw libdnf5::cli::CommandExitError(1, M_("Unable to match systemd journal entry.")); } }