Skip to content

Commit

Permalink
system-upgrade: fix journalctl exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-goode committed Feb 2, 2024
1 parent 857c9d9 commit c104b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnf5-plugins/system_upgrade_plugin/system_upgrade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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."));
}
}
Expand Down

0 comments on commit c104b43

Please sign in to comment.