summaryrefslogtreecommitdiff
path: root/packages/altboot/files/altboot-menu/Advanced/70-setKernel
diff options
context:
space:
mode:
Diffstat (limited to 'packages/altboot/files/altboot-menu/Advanced/70-setKernel')
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/70-setKernel8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/altboot/files/altboot-menu/Advanced/70-setKernel b/packages/altboot/files/altboot-menu/Advanced/70-setKernel
index a2c1efa81b..6192232a73 100644
--- a/packages/altboot/files/altboot-menu/Advanced/70-setKernel
+++ b/packages/altboot/files/altboot-menu/Advanced/70-setKernel
@@ -40,11 +40,13 @@ run_module() {
get_pref "kexec_klist" "$junk" KEXEC_SELECTED_KERNEL && break
- done
-
- echo "Using [$KEXEC_SELECTED_KERNEL]"
+ done
+ else
+ KEXEC_SELECTED_KERNEL="`ls -1 $KEXEC_KERNEL_DIR/zImage* | grep -v "kexec.cfg" `"
fi
+ echo -e "\nUsing [$KEXEC_SELECTED_KERNEL]"
+
if ! test -e "$KEXEC_SELECTED_KERNEL.kexec.cfg"
then
echo -e "\nWARNING: This kernel has not been configured."