[PATCH] grub-install: force journal draining to ensure data integrity

2020-04-29 Thread Michael Chang
In XFS, the system would end up in unbootable state if an abrupt power off after grub-install is occuring. It can be easily reproduced with. grub-install /dev/vda; reboot -f The grub error would show many different kinds of corruption in filesystem and the problem boils down to incompleted jour

Re: Feature request: Boot default subvolume in BTRFS

2020-04-29 Thread Michael Chang
On Tue, Apr 28, 2020 at 03:59:53PM +0200, Thomas wrote: > Hello, > > this is the description of my feature request: > Grub is booting the default subvolume in BTRFS w/o any manual > modification in Grub configuration. > > Current situation: > Booting a snapshot created with Snapper >

Re: [PATCH RFC/RFT 0/3] Add grub loader support for RISC-V Linux

2020-04-29 Thread Leif Lindholm
Hi Atish, On Tue, Apr 28, 2020 at 11:21:05 -0700, Atish Patra wrote: > > > Hello Ard, > > > > > > Did I misunderstand you and you want to provide a LOAD_FILE2 > > > implementation in GRUB and not use the one in the firmware? > > > > Yes. If you use GRUB, it is provided by GRUB. Otherwise, it can b

[PATCH v2] tests: Don't run f2fs test on systems with PAGE_SIZE more than 4096 bytes

2020-04-29 Thread Anatoly Pugachev
Don't run f2fs test on systems with PAGE_SIZE > 4096 bytes, since f2fs is not supported on these systems and trying to mount a f2fs filesystem would fail. v2 changes: - fix compare - quotes around variable expansion Signed-off-by: Anatoly Pugachev Reviewed-by: Mike Gilbert --- tests/f2fs_tes

[PATCH 2/2] core: commands: efi: add commands to get/set EFI vars

2020-04-29 Thread Flavio Suligoi
Sometimes, using a GRUB boot script (i.e. grub.cfg), it is very important to get/set an EFI variable, especially in embedded systems, to detect some custom BIOS features. For example, based on the content of some EFI variables, a script can decide to boot a special kernel instead of the usual kerne

[PATCH 1/2] efi: add non-volatile parameter to grub_efi_set_variable

2020-04-29 Thread Flavio Suligoi
The current version of the function: grub_efi_set_variable always set an EFI variable as "non-volatile", since the variable attribute: GRUB_EFI_VARIABLE_NON_VOLATILE is fixed in the EFI SetVariable() call. With this change it is possible to decide if the written EFI variable is volatile or not

Re: [PATCH v2] tests: Don't run f2fs test on systems with PAGE_SIZE more than 4096 bytes

2020-04-29 Thread Hans Ulrich Niedermann
On Wed, 29 Apr 2020 17:06:36 +0300 Anatoly Pugachev wrote: > Don't run f2fs test on systems with PAGE_SIZE > 4096 bytes, since > f2fs is not supported on these systems and trying to mount a f2fs > filesystem would fail. "Skip the f2fs test on ..." might be better wording, both in this paragraph

Re: [PATCH v2] tests: Don't run f2fs test on systems with PAGE_SIZE more than 4096 bytes

2020-04-29 Thread Hans Ulrich Niedermann
On Wed, 29 Apr 2020 19:25:57 +0200 Hans Ulrich Niedermann wrote: > On Wed, 29 Apr 2020 17:06:36 +0300 > Anatoly Pugachev wrote: > > > Don't run f2fs test on systems with PAGE_SIZE > 4096 bytes, since > > f2fs is not supported on these systems and trying to mount a f2fs > > filesystem would fail

ASN.1 parsing for verifying appended signatures

2020-04-29 Thread Daniel Axtens
Hi, I'd like to teach grub how to verify appended signatures. Appended signatures are a format used by the Linux kernel to cryptographically sign binaries. They're used to verify kernel modules on all platforms [1], and they're also used on some platforms (such as PowerPC) for signing the kernel i

Re: [PATCH RFC/RFT 0/3] Add grub loader support for RISC-V Linux

2020-04-29 Thread Atish Patra
On Wed, Apr 29, 2020 at 4:22 AM Leif Lindholm wrote: > > Hi Atish, > > On Tue, Apr 28, 2020 at 11:21:05 -0700, Atish Patra wrote: > > > > Hello Ard, > > > > > > > > Did I misunderstand you and you want to provide a LOAD_FILE2 > > > > implementation in GRUB and not use the one in the firmware? > >

[PATCH] RISC-V: Update linux image header

2020-04-29 Thread Atish Patra
Update the RISC-V Linux kernel image headers as per the current header defined in Linux kernel. Reference: /Documentation/riscv/boot-image-header.rst Signed-off-by: Atish Patra --- include/grub/riscv32/linux.h | 15 --- include/grub/riscv64/linux.h | 15 --- 2 files chan