From e5dc5867687b16211bdd8bc2842db769a288f2a9 Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Tue, 14 Mar 2017 13:18:46 +0100 Subject: [PATCH] list installed kernels once --- lib/util-base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util-base.sh b/lib/util-base.sh index b8d4faf..ae7a504 100644 --- a/lib/util-base.sh +++ b/lib/util-base.sh @@ -241,7 +241,7 @@ install_base() { # Check to see if a kernel is already installed ls ${MOUNTPOINT}/boot/*.img >/dev/null 2>&1 if [[ $? == 0 ]]; then - DIALOG " kernel check " --msgbox "\nlinux-$(ls ${MOUNTPOINT}/boot/*.img | cut -d'-' -f2 | grep -v ucode.img) detected \n " 0 0 + DIALOG " kernel check " --msgbox "\nlinux-$(ls ${MOUNTPOINT}/boot/*.img | cut -d'-' -f2 | grep -v ucode.img | sort -u) detected \n " 0 0 check_for_error "linux-$(ls ${MOUNTPOINT}/boot/*.img | cut -d'-' -f2) already installed" else DIALOG " $_ErrTitle " --msgbox "\n$_ErrNoKernel\n " 0 0