mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-06-02 19:00:16 +00:00
We need to bail if the update fails.
...not just display an error message and continue.
This commit is contained in:
parent
76b4fd7d39
commit
4a8f48d1c9
|
@ -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.'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user