summaryrefslogtreecommitdiffstats
path: root/server/tftpboot/grub/templates/10
blob: 4271840eb8335137e097b142e2e4037b21efddc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
##NO-TOCAR-ESTA-LINEA 1hd
set timeout=0

# Compruebo si existe rEFInd
set root=''
echo "rEFInd"
search --file --set root /EFI/refind/grubx64.efi
if [ "$root" == "" ]; then
    set label="rEFInd no está instalado" 
    set chain=""
else
    set label="rEFInd"
    set chain="chainloader /EFI/refind/grubx64.efi"
fi

menuentry "$label" {
    root='hd0,gpt1'
    eval "$chain"
    boot
}