kernel-install: adjust EFI check to look for xen.cfg

Even if EFI directory is present it may not be populated. kernel-install
part care specifically about xen.cfg file, so check it explicitly. If
grub2-efi is in use, the file wont be there and the script isn't
supposed to do anything.
This commit is contained in:
Marek Marczykowski-Górecki 2019-06-27 14:28:15 +02:00
parent 895415aee1
commit c56c4a7a9d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -24,7 +24,7 @@ else
EFI_DIR="$ESP_MOUNTPOINT$EFI_DIR" EFI_DIR="$ESP_MOUNTPOINT$EFI_DIR"
fi fi
if [ ! -d "$EFI_DIR" ]; then if [ ! -r "$EFI_DIR/xen.cfg" ]; then
# non-EFI system # non-EFI system
exit 0; exit 0;
fi fi