Commit ca6225af authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm kernel-update --check-run-kernel: fix for p11 kernel suffix (eterbug #17826)

parent 024c2424
......@@ -151,7 +151,7 @@ used_kflavour () {
check_run_kernel() {
used_kflavour
if ls /boot | grep -E "^vmlinuz-[0-9]+\.[0-9]+(\.[0-9]+)?-${USED_KFLAVOUR}-alt[0-9]+(\.rt[0-9]+)?$" | sort -Vr | head -n 1 | grep -q "$(uname -r)"; then
if ls /boot | grep -E "^vmlinuz-[0-9]+\.[0-9]+(\.[0-9]+)?-${USED_KFLAVOUR}-alt[0-9]*" | sort -Vr | head -n 1 | grep -q "$(uname -r)"; then
echo "The newest installed ${USED_KFLAVOUR} kernel is running."
return 0
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment