mirror of
https://gitlab.manjaro.org/applications/manjaro-architect
synced 2024-11-08 01:10:26 +00:00
list installed kernels once
This commit is contained in:
parent
07a3b9bf9d
commit
e5dc586768
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user