mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-22 05:01:25 +00:00
Check the dnf check exit code before attempting migration. (#167)
This commit is contained in:
parent
d5a6e46df3
commit
92b35b59d9
@ -271,6 +271,10 @@ pre_check () {
|
|||||||
'migrate2rocky. See the README file for details.'
|
'migrate2rocky. See the README file for details.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnf -y check || exit_message \
|
||||||
|
'Errors found in dnf/rpm database. Please correct before running '\
|
||||||
|
'migrate2rocky.'
|
||||||
|
|
||||||
# Get available space to compare to requirements.
|
# Get available space to compare to requirements.
|
||||||
# If the stock kernel is not installed we don't require space in /boot
|
# If the stock kernel is not installed we don't require space in /boot
|
||||||
if ! rpm -q --quiet kernel; then
|
if ! rpm -q --quiet kernel; then
|
||||||
|
Loading…
Reference in New Issue
Block a user