update-kernel: Slightly improve messaging about new flavours

UI/UX.

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This commit is contained in:
Виталий Чикунов 2024-10-28 04:13:48 +03:00
parent ffb9bd149e
commit a7220ac394

View File

@ -434,8 +434,12 @@ for try in 1 2; do
else
current_kver=$uname_r
fi
echo "Searching for a newer flavour..."
echo "Searching for a newer flavour (>= $current_kver)..."
kernel_flavour=$(next_flavours "$current_kver" | tail -1)
if [ -z "$kernel_flavour" ]; then
echo "No newer flavours found."
break
fi
echo "Upgrade to the next available flavour $kernel_flavour"
done
[ "$num_available_kernels" -ne 0 ] || fatal "Use -t to select another flavour."