Re: UEFI Secureboot not succeeding with Grub 2.06 and later version

2021-07-08 Thread Michael Chang via Grub-devel
On Thu, Jul 08, 2021 at 03:31:15PM +0200, Daniel Kiper wrote: > On Thu, Jul 08, 2021 at 08:01:31PM +0800, Michael Chang via Grub-devel wrote: > > Hi Dimitri, > > > > On Thu, Jul 08, 2021 at 11:51:25AM +0100, Dimitri John Ledkov wrote: > > > Hi, > > > > > > The below mentioned commands are useful. H

Re: UEFI Secureboot not succeeding with Grub 2.06 and later version

2021-07-08 Thread Michael Chang via Grub-devel
On Thu, Jul 08, 2021 at 01:18:34PM +0100, Dimitri John Ledkov wrote: > On Thu, 8 Jul 2021, 13:05 Michael Chang via Grub-devel, > wrote: > > > Hi Dimitri, > > > > On Thu, Jul 08, 2021 at 11:51:25AM +0100, Dimitri John Ledkov wrote: > > > Hi, > > > > > > The below mentioned commands are useful. Hen

[PATCH 2/2] grub2: use stat instead of udevadm for partition lookup

2021-07-08 Thread Petr Vorel
From: Jeff Mahoney sysfs_partition_path calls udevadm to resolve the sysfs path for a block device. That can be accomplished by stating the device node and using the major/minor to follow the symlinks in /sys/dev/block/. This cuts the execution time of grub2-mkconfig from 10s to 2s on my system.

[PATCH 1/2] osdep: Introduce major.h and use it

2021-07-08 Thread Petr Vorel
Signed-off-by: Petr Vorel --- grub-core/osdep/devmapper/getroot.c | 7 +-- grub-core/osdep/devmapper/hostdisk.c | 7 +-- grub-core/osdep/linux/getroot.c | 7 +-- grub-core/osdep/unix/getroot.c | 7 +-- include/grub/osdep/major.h | 30 +

[PATCH 0/2] linux: use stat instead of udevadm for partition lookup + cleanup

2021-07-08 Thread Petr Vorel
Hi, I'm backporting Jeff's patch from openSUSE + adding little cleanup. Kind regards, Petr Jeff Mahoney (1): grub2: use stat instead of udevadm for partition lookup Petr Vorel (1): osdep: Introduce major.h and use it grub-core/osdep/devmapper/getroot.c | 7 +-- grub-core/osdep/devma

Re: UEFI Secureboot not succeeding with Grub 2.06 and later version

2021-07-08 Thread Daniel Kiper
On Thu, Jul 08, 2021 at 08:01:31PM +0800, Michael Chang via Grub-devel wrote: > Hi Dimitri, > > On Thu, Jul 08, 2021 at 11:51:25AM +0100, Dimitri John Ledkov wrote: > > Hi, > > > > The below mentioned commands are useful. Hence we need to debug this > > further and establish further details about y

Re: UEFI Secureboot not succeeding with Grub 2.06 and later version

2021-07-08 Thread Daniel Kiper
On Thu, Jul 08, 2021 at 07:04:46AM +, Sayanta Pattanayak wrote: > Hi Daniel, > > Thanks for your reply and hope you had a great vacation. Yeah, I had nice time. > We use Upstream 2.06 tagged version. Mentioning below the Build Commands and > Console Output. Thanks! Please look below. [...]

Re: UEFI Secureboot not succeeding with Grub 2.06 and later version

2021-07-08 Thread Dimitri John Ledkov
On Thu, 8 Jul 2021, 13:05 Michael Chang via Grub-devel, wrote: > Hi Dimitri, > > On Thu, Jul 08, 2021 at 11:51:25AM +0100, Dimitri John Ledkov wrote: > > Hi, > > > > The below mentioned commands are useful. Hence we need to debug this > > further and establish further details about your setup. >

Re: UEFI Secureboot not succeeding with Grub 2.06 and later version

2021-07-08 Thread Michael Chang via Grub-devel
Hi Dimitri, On Thu, Jul 08, 2021 at 11:51:25AM +0100, Dimitri John Ledkov wrote: > Hi, > > The below mentioned commands are useful. Hence we need to debug this > further and establish further details about your setup. I think the problem here is that arm64 already uses LoadImage to verify the ke

Re: UEFI Secureboot not succeeding with Grub 2.06 and later version

2021-07-08 Thread Dimitri John Ledkov
Hi, The below mentioned commands are useful. Hence we need to debug this further and establish further details about your setup. 1) which keys are in DB? ( mokutil --db --list-enrolled ) 2) which keys are used to sign grub image? ( sbverify --list grub*.efi ) 3) which keys are used to sign grub

RE: UEFI Secureboot not succeeding with Grub 2.06 and later version

2021-07-08 Thread Sayanta Pattanayak
Hi Daniel, Thanks for your reply and hope you had a great vacation. We use Upstream 2.06 tagged version. Mentioning below the Build Commands and Console Output. >-Original Message- >From: Daniel Kiper >Sent: Wednesday, July 7, 2021 6:45 PM >To: Sayanta Pattanayak >Cc: grub-devel@gnu.or