#82 Improve boot resilience
Merged by ngompa. Opened by jannau.
fedora-asahi/ jannau/kiwi-descriptions boot-resilience  into  rawhide

Download 82.patch

Match grub2 configuration of Fedora installs:
- add GRUB_ENABLE_BLSCFG=true to /etc/default/grub for all images
- add menu_auto_hide=1 to grubenv for workstation installs. This will automatically show the grub menu after failed boots using the grub-boot-success systemd user session timer/service
- remove workaround for fixed kiwi issue #2198
- remove /boot/grub2/arm64-efi timebomb (rhbz#2361849)

This is not yet tested in installs of images with this changes.

Can you use *"Desktop"* instead and port this change over to upstream too?

Please file a bug upstream about this.

Can you port relevant changes to upstream fedora-kiwi-descriptions too?

I've already created https://github.com/OSInside/kiwi/issues/2790

Which changes do you want to be ported over to fedora-kiwi-descriptions? All including the forceful deletion of the grub2 modules? That one is architecture specific.
Based on grep -r menu_auto_hide /etc/anaconda I suspect if [[ "$kiwi_profiles" == *"-Desktop"* ]]; is not sufficient in fedora-kiwi-descriptions either.

4 new commits added

  • Exclude grub2 modules from the boot partition
  • Enable grub2 BLS to match Fedora
  • *Desktop: Use the same grub2 config as Fedora anaconda installs
  • Stop setting GRUB_DEFAULT=saved after kiwi is fixed

Yeah, the deleting of the grub2 modules should be guarded by an archful conditional, we have an example of this in config.sh.

To be honest, I'd probably do auto-hide by default for all variants except Server.

I've submitted a fix for the grub2 issue: https://github.com/OSInside/kiwi/pull/2791

I saw. I'll skip the module cleanup change there (and probably here as well).

I've submitted the menu_auto_hide change and have the bls=true change queued locally. I realized too late that those too changes conflict.

I tested this with a locally built kde image and it works mostly as expected. The grub menu is shown on the first boot after the install. I'm thinking of adding boot_success=1 to the grubenv as well to avoid this.

I tested this with a locally built kde image and it works mostly as expected. The grub menu is shown on the first boot after the install. I'm thinking of adding boot_success=1 to the grubenv as well to avoid this.

That would make sense to do.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/1842ef64193b443cb873df4f34c3eda4

3 new commits added

  • Enable grub2 BLS to match Fedora
  • *Desktop: Use the same grub2 config as Fedora anaconda installs
  • Stop setting GRUB_DEFAULT=saved after kiwi is fixed

I've dropped the grub2 module removal as that will be fixed by kiwi-10.2.18. This now sets boot_success=1 in the grubenv to avoid displaying the grub menu on first boot.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/295bfa63b064469fadaad9d9a6a95c4b

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/464bb470b867468a9957db12fc54053f

Pull-Request has been merged by ngompa

Metadata