mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-12-26 20:00:55 +00:00
Check the dnf check exit code before attempting migration. (#167)
This commit is contained in:
parent
d5a6e46df3
commit
92b35b59d9
1 changed files with 4 additions and 0 deletions
|
@ -271,6 +271,10 @@ pre_check () {
|
|||
'migrate2rocky. See the README file for details.'
|
||||
fi
|
||||
|
||||
dnf -y check || exit_message \
|
||||
'Errors found in dnf/rpm database. Please correct before running '\
|
||||
'migrate2rocky.'
|
||||
|
||||
# Get available space to compare to requirements.
|
||||
# If the stock kernel is not installed we don't require space in /boot
|
||||
if ! rpm -q --quiet kernel; then
|
||||
|
|
Loading…
Reference in a new issue