From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1b6ZB8-000317-AH for mharc-grub-devel@gnu.org; Sat, 28 May 2016 04:01:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6ZB5-00030f-JL for grub-devel@gnu.org; Sat, 28 May 2016 04:01:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6ZB1-00085D-H8 for grub-devel@gnu.org; Sat, 28 May 2016 04:00:58 -0400 Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:36605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6ZB1-00084u-8u for grub-devel@gnu.org; Sat, 28 May 2016 04:00:55 -0400 Received: by mail-lb0-x22c.google.com with SMTP id h1so35991372lbj.3 for ; Sat, 28 May 2016 01:00:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=4Pt0dqYHSR2az3JiMA2gHQL1pzTSqZKK6aMe9otqBfo=; b=DHsAiSjqvfVnGYIR8JR9bs/9b1eoVTb6lZTUQqHF/u0uoVCa4pAUEyzvr0+L94uANL BFttZc7T074Rq7qGAUvKmpPTmcujoUsihm72maX43oDu/CKsPAFabEeL5hXaEMYaoL4o U/0Kdrjoln1fWFyXCbTDLrZqZUeQeAe6BQtw9SWYm3VpqZZJVhQbHRJqDzyQKNAX9cpi hWYJ/SR+lofktxP/lQztExOUb953FHwrr/+xH8am2jk9xGpfbv5ruAyQry8Um0w6ZQTl ZYZc/elAW821wA8HHmqQTKxBZZ7PyfblRYJSv+C3wy9EEKd+Wa2o3g/Ly7FxnwwfCJxt 6nhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=4Pt0dqYHSR2az3JiMA2gHQL1pzTSqZKK6aMe9otqBfo=; b=Zn2fsEc77iCv/PYffksBpRBj/zvwPrisJW8e0aG8TJxBh3++vjgNJfpcaM7xJpKVlf fQrqlz+vI9suXIhBVXv0F6GAfF9aEet8FA7sGOE4OZ8MAiHUwZXV9BZi11DR1hSFbnOh Io8gPtclheutI++w1uzp+I0BH5Qcr7LUBMlea21gziQLSzDHv5AObAr5FPnnO+nKq6cp E5tcJmCqXFkJym84E6xm6Cm3PI4O6cO9ZRcQA+43GlNSGLeStf8IP88o5u9AjibbEi8s gHBo+H7Vu/N069IY/1XhJT2S3SMi7BnROxdHoCm2pDb7jMt1Xnpp/gl40aZrIuKWaI45 jZQg== X-Gm-Message-State: ALyK8tIIvgAzCjBhXjOyjkibZVMhJ5zzm1CDTWbigXb4cJQEx7ClBSDRV1BpMOaCiPebAQ== X-Received: by 10.112.166.72 with SMTP id ze8mr5887173lbb.128.1464422453797; Sat, 28 May 2016 01:00:53 -0700 (PDT) Received: from [192.168.1.42] (ppp109-252-90-46.pppoe.spdop.ru. [109.252.90.46]) by smtp.gmail.com with ESMTPSA id 75sm3425308lfw.25.2016.05.28.01.00.52 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 28 May 2016 01:00:52 -0700 (PDT) Subject: Re: grub does not properly set efi boot on NVMe device To: The development of GNU GRUB References: <8488996c-1c57-6b29-a07e-4ef72a279d20@gnu-log.net> From: Andrei Borzenkov Message-ID: <57495034.2020408@gmail.com> Date: Sat, 28 May 2016 11:00:52 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <8488996c-1c57-6b29-a07e-4ef72a279d20@gnu-log.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::22c X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2016 08:01:00 -0000 27.05.2016 21:37, Benoit Gschwind пишет: > Hello, > > I found an issue when I use: > > grub-install --boot-directory=/boot/efi/EFI/gentoo --efi-directory=/boot/efi > > Note that the EFI partition is mounted at /boot/efi and I use grub 2.02beta3 > > After grub-install, I get the following boot setup: > > localhost ~ # efibootmgr -v > BootCurrent: 0000 > Timeout: 0 seconds > BootOrder: 0001,0000,0004 > Boot0000* ubuntu > HD(1,GPT,[hidden],0x800,0xfa000)/File(\EFI\ubuntu\shimx64.efi) > Boot0001* gentoo > HD(1,0,00000000000000000000000000000000,0x0,0x0)/File(\EFI\gentoo\grubx64.efi) > Boot0004 Windows Boot Manager > HD(1,GPT,[hidden],0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi) > [hidden] > Boot0006* M.2 PCIe SSD BBS(HD,PM951 NVMe SAMSUNG 512GB ,0x0)..BO > Boot0008* UEFI: PM951 NVMe SAMSUNG 512GB, Partition 1 > HD(1,GPT,[hiddent],0x800,0xfa000)/File(EFI\boot\bootx64.efi)[hidden] > > When I reboot my computer skip the entry 0001 and load the entry 0000, > and also remote the entry 0001 from the boot order. > EFI menu entries are created by efibootmgr. Please run grub-install with option --debug and make full log avaiable. > If I setup the boot loader with the bios, I get the following _working_ > setup : > > localhost ~ # efibootmgr -v > BootCurrent: 0002 > Timeout: 0 seconds > BootOrder: 0002,0004,0000 > Boot0000* ubuntu > HD(1,GPT,[hidden],0x800,0xfa000)/File(\EFI\ubuntu\shimx64.efi) > Boot0001* gentoo > HD(1,0,00000000000000000000000000000000,0x0,0x0)/File(\EFI\gentoo\grubx64.efi) > Boot0002* gentoo > PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/NVMe(0x1,[hidden])/HD(1,GPT,[hidden],0x800,0xfa000)/File(\EFI\gentoo\grubx64.efi) > Boot0004 Windows Boot Manager > HD(1,GPT,[hidden],0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)[hidden] > Boot0006* M.2 PCIe SSD BBS(HD,PM951 NVMe SAMSUNG 512GB ,0x0)[hidden] > Boot0008* UEFI: PM951 NVMe SAMSUNG 512GB, Partition 1 > HD(1,GPT,[hidden],0x800,0xfa000)/File(EFI\boot\bootx64.efi)[hidden] > > The entry 0002 is properly selected, and work fine. Note also that I can > remove the entry 0001 without trouble. > > I hope that may help to improve grub. > > Best regards > -- > Benoit Gschwind > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >