We need to bail if the update fails.

...not just display an error message and continue.
This commit is contained in:
Peter Ajamian 2021-06-29 17:48:17 +12:00
parent 76b4fd7d39
commit 4a8f48d1c9

View File

@ -563,7 +563,7 @@ generate_rpm_info() {
# Run a dnf update before the actual migration.
pre_update() {
infomsg '%s\n' "Running dnf update before we attempt the migration."
dnf -y update || error_message \
dnf -y update || exit_message \
$'Error running pre-update. Stopping now to avoid putting the system in an\n'\
$'unstable state. Please correct the issues shown here and try again.'
}