help-grub
[Top][All Lists]
Advanced

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

Re: Unknown command 'else'?


From: Steven Shiau
Subject: Re: Unknown command 'else'?
Date: Thu, 24 Sep 2015 15:40:12 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

On 9/24/2015 PM 03:27, Andrei Borzenkov wrote:
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.
OK, got it.

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.
Thanks. Just think if there is a better way to use "search" to find those "bootx64.efi", "grubx64.efi", or "grub.efi". Because some vendors use different path name, like SuSE uses "/EFI/sled12/grubx64.efi", and in the future, the "sled12" definitely will become "sled13", "sled14"...
For the moment I will keep the way it is.
Appreciate.

Steven.


--
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/47CF935C
Fingerprint: 0240 1FEB 695D 7112 62F0  8796 11C1 12DA 47CF 935C



reply via email to

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