From e6c6b82f82318d373cba42d2cbe0daaf5e6f4c98 Mon Sep 17 00:00:00 2001 From: salva09 Date: Wed, 1 Jul 2020 21:45:49 +0000 Subject: [PATCH] improve kernel selection --- pacstrap/pacstrap.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pacstrap/pacstrap.sh b/pacstrap/pacstrap.sh index 5961724..2a57755 100755 --- a/pacstrap/pacstrap.sh +++ b/pacstrap/pacstrap.sh @@ -10,9 +10,13 @@ fi pacman -Sy --noconfirm # kernel selection -KERNEL="$(iroot kernel)" -if ! [ KERNEL || KERNEL -eq "linux" || KERNEL -eq "linux-lts" ]; then - # fallbacks to lts kernel +if iroot kernel; then + KERNEL="$(iroot kernel)" + if [ "$KERNEL" -eq "default" ]; then + KERNEL="linux-lts" + fi +else + # fallback to linux-lts KERNEL="linux-lts" fi -- 2.11.0