Skip to content

Fixed grub2 error messages and proposals.#1413

Merged
schubi2 merged 66 commits intomasterfrom
boot_grub2
Aug 6, 2025
Merged

Fixed grub2 error messages and proposals.#1413
schubi2 merged 66 commits intomasterfrom
boot_grub2

Conversation

@schubi2
Copy link
Copy Markdown
Member

@schubi2 schubi2 commented Jul 16, 2025

Problem

Storage-ng makes some checks regarding boot partition and the usage of grub2 and grub2-efi in every
case. It also suggests subvolumes especially for grub2 and grub2-efi.
Now we have two BLS bootmanager for which these actions are wrong or not needed at least.

Solution

These checks/suggestions should not be done if the preferred bootloader is systemd-boot or grub2-bls

Testing

  • Tested manually
  • Added units tests

@coveralls
Copy link
Copy Markdown

coveralls commented Jul 17, 2025

Coverage Status

coverage: 97.695% (-0.02%) from 97.719%
when pulling bb969b0 on boot_grub2
into d80f7cb on master.

Comment thread src/lib/y2storage/setup_checker.rb
Comment thread src/lib/y2storage/volume_specification.rb
Comment thread test/y2storage/setup_errors_presenter_test.rb
Copy link
Copy Markdown
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First round of comments. I miss some tests about BLS, for example, to check that the grub subvolumes are not added, etc.

Anyway, I would prefer @ancorgs has a look too. He knows very well all this about booting.

@schubi2

This comment was marked as resolved.

@schubi2

This comment was marked as resolved.

Comment thread test/y2storage/volume_specification_test.rb Outdated
Comment thread test/y2storage/setup_errors_presenter_test.rb Outdated
schubi2 and others added 4 commits August 6, 2025 10:53
Co-authored-by: José Iván López <jlopez@suse.com>
Co-authored-by: José Iván López <jlopez@suse.com>
Co-authored-by: José Iván López <jlopez@suse.com>
Comment thread src/lib/y2storage/volume_specification.rb Outdated
schubi2 and others added 2 commits August 6, 2025 12:16
Co-authored-by: José Iván López <jlopez@suse.com>
Copy link
Copy Markdown
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@schubi2 schubi2 merged commit 3166535 into master Aug 6, 2025
12 checks passed
@schubi2 schubi2 deleted the boot_grub2 branch August 6, 2025 12:13
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 6, 2025

✅ Autosubmission job #16776572491 successfully finished
✅ Created submit request #1297946

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants