help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unknown command 'else'?


From: Andrei Borzenkov
Subject: Re: Unknown command 'else'?
Date: Thu, 24 Sep 2015 10:27:46 +0300

On Tue, Sep 22, 2015 at 6:05 PM, Steven Shiau <address@hidden> wrote:
> BTW, one thing I noticed is that, it seems the file downloading from
> tftp server for grub2 in uEFI netboot mode is not fast, compared to PXE
> netboot.
> From the attached file you can see the average rate is about 0.5 MB/sec
> in the client ( a VMWare WS 12 machine).
> In the PXE netboot mode on the same VM machine, the rate is about twice
> faster. Any method I can make it faster in uEFI netboot mode?

You mean, without changing source code? Probably not.

> Oh, yes, please allow me to ask me one more question, I am editing a
> grub config to have a local boot:
> menuentry "First local disk" --id local-disk {
>   echo "Booting first local disk..."
>   set root=(hd0,1)
>   if [ -e /EFI/redhat/grub.efi ]; then
>     chainloader /EFI/redhat/grub.efi +1
>   elif [ -e /EFI/fedora/shim.efi ]; then
>     chainloader /EFI/fedora/shim.efi +1
>   elif [ -e /EFI/fedora/grubx64.efi ]; then
>     chainloader /EFI/fedora/grubx64.efi +1
>   elif [ -e /EFI/debian/grubx64.efi ]; then
>     chainloader /EFI/debian/grubx64.efi +1
>   elif [ -e /EFI/ubuntu/grubx64.efi ]; then
>     chainloader /EFI/ubuntu/grubx64.efi +1
>   elif [ -e /EFI/opensuse/grubx64.efi ]; then
>     chainloader /EFI/opensuse/grubx64.efi +1
>   elif [ -e /EFI/Boot/bootx64.efi ]; then
>     chainloader /EFI/Boot/bootx64.efi +1
>   elif [ -e /EFI/Microsoft/Boot/bootmgfw.efi ]; then
>     chainloader /EFI/Microsoft/Boot/bootmgfw.efi +1
>   else
>     echo "No uEFI image was found!"
>     sleep 15
>   fi
>
> Is that possible I can use "search" or other command to make this?

Not that I am aware of; code looks just fine to me.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]