This commit is contained in:
Valeria Fadeeva 2024-05-24 16:43:58 +05:00
parent 4e2b226ece
commit 615982df2c
2 changed files with 11 additions and 3 deletions

View File

@ -77,6 +77,4 @@ default_selection "linux"
[YooMoney](https://yoomoney.ru/to/4100115921160758)
[Qiwi](https://qiwi.com/n/VALERIAFADEEVA)
Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f

View File

@ -133,7 +133,17 @@ if [ -d "$KERNEL_DIR" ]; then
fi
kernels_list=$(ls -1 "${ESP}/EFI/Linux/" | grep 'linu' | grep -v 'fallback' | grep '\.efi$')
kernels_list=$(ls -1 "${ESP}/EFI/Linux/" | grep 'linux' | grep -v 'fallback' | grep '\.efi$')
if [[ -z "$kernels_list" ]]; then
kernels_list=$(ls -1 "${ESP}/EFI/Linux/" | grep "^vmlinuz" | sed "s/vmlinuz-//")
fi
echo -e "KERNELS:\n$kernels_list"
if [[ -z "$kernels_list" ]]; then
echo "ERROR: list of kernels is empty"
exit 1
fi
for i in $kernels_list;
do