forked from pool/os-prober
Marcus Meissner
81111d8d75
- add support for chainloading another UEFI bootloader (bnc#775610) * 05efi - top level driver to search ESP * efi-20microsoft - support Microsoft UEFI bootloader * efi-10elilo - support ELILO UEFI bootloader (Agnelo de la Crotche) - skip legacy Microsoft bootloader on UEFI (bnc#775610) OBS-URL: https://build.opensuse.org/request/show/147193 OBS-URL: https://build.opensuse.org/package/show/Base:System/os-prober?expand=0&rev=9
26 lines
529 B
Bash
26 lines
529 B
Bash
#!/bin/sh
|
|
# Detects ELILO bootloader on a EFI System Partition
|
|
|
|
. /usr/share/os-prober/common.sh
|
|
|
|
efi="$1"
|
|
|
|
found=
|
|
|
|
elilo=`find $1 -name "elilo.efi"`
|
|
if [ -n "$elilo" ]; then
|
|
bdir=`dirname $elilo`
|
|
bdir=`basename $bdir`
|
|
vendor=$(echo $bdir | sed 's|SuSE|SUSE|')
|
|
long="${vendor} ELILO Boot Manager"
|
|
short="ELILO"
|
|
path=${bdir}/elilo.efi
|
|
found=true
|
|
fi
|
|
|
|
if [ -n "$found" ]; then
|
|
label="$(count_next_label "$short")"
|
|
result "${path}:${long}:${label}"
|
|
fi
|
|
exit 0
|