Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Dec 5, 2023
1 parent addd33a commit 5e60bc8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions usr/bin/dist-installer-cli
Original file line number Diff line number Diff line change
Expand Up @@ -1037,13 +1037,15 @@ need_reboot_check_second() {
## Fedora 38: Part of dnf-utils. Not installed by default (on CI).
## Fedora 39: Part of dnf-plugins-core. Not installed by default (on CI).
## Therefore this can only run after install_package_fedora_common.
if ! root_cmd /usr/bin/needs-restarting --reboothint ; then
die 1 "${underline}Reboot Check Result:${nounderline} Your system reports that a reboot is required.
if root_cmd /usr/bin/needs-restarting --reboothint ; then
return 0
fi

die 1 "${underline}Reboot Check Result:${nounderline} Your system reports that a reboot is required.
Please reboot your system and restart this installer.
Debugging information: needs-restarting reported that a reboot is required."
fi
}


Expand Down

0 comments on commit 5e60bc8

Please sign in to comment.