Skip to content

Switch Tumbleweed to use grub2-bls #22661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

foursixnine
Copy link
Member

@foursixnine foursixnine commented Jul 15, 2025

Ticket https://progress.opensuse.org/issues/184861
This should be part of #22576 (for now, see that PR for more context)

Copy link

Great PR! Please pay attention to the following items before merging:

Files matching lib/**.pm:

  • Consider adding or extending unit tests in t/

This is an automatically generated QA checklist based on modified files.

@foursixnine foursixnine marked this pull request as draft July 15, 2025 12:41
@foursixnine foursixnine force-pushed the newdefaultbootloader-grub2-bls branch 5 times, most recently from db131ed to 4912305 Compare July 18, 2025 13:49
return 'grub2' if (get_var('FLAVOR', '') =~ /(MicroOS-SelfInstall|MicroOS-Image|Image-ContainerHost|JeOS-for-kvm-and-xen|JeOS-for-OpenStack-Cloud)$/);
return 'systemd-boot' if is_microos;
return 'grub2' if is_slowroll;
return 'grub2-bls' if (!is_sle || !is_leap);
Copy link
Member

Choose a reason for hiding this comment

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

this "if" will always be true. Everything will always be "not sle" or "not leap" except for "SleLeap" which is both SLE and Leap :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I can put is_tubleweed :D

Copy link
Member

Choose a reason for hiding this comment

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

Our tests should always consider openSUSE Tumbleweed as the default product without a version. That means any differing behaviour should have an explicit exclude rule for the "older products" and potentially an explanation why the behaviour should differ. You can try to negate the logic check.

See https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/CONTRIBUTING.md#coding-style for more details

My point was: Instead of !is_sle || !is_leap you likely want !is_sle && !is_leap

Copy link
Member Author

Choose a reason for hiding this comment

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

My point was: Instead of

Then make the suggestion, because from your comment I could not figure out what did you want to say. I'll check again when I need to touch that code

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return 'grub2-bls' if (!is_sle || !is_leap);
return 'grub2-bls' if !is_sle && !is_leap;

Comment on lines 16 to 20
if (is_bootloader_grub2) {
$testapi::distri->get_bootloader_settings()->disable_grub_timeout();
} else {
$testapi::distri->get_bootloader_settings()->bls_disable_timeout();
}
Copy link
Member

Choose a reason for hiding this comment

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

How about a new function in the "distri" called "disable_bootloader_timeout" and do the distinction in there?

Copy link
Member Author

Choose a reason for hiding this comment

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

Lets keep it as is for now

@foursixnine foursixnine force-pushed the newdefaultbootloader-grub2-bls branch from 4912305 to 990354e Compare July 18, 2025 14:06
@foursixnine foursixnine force-pushed the newdefaultbootloader-grub2-bls branch from 990354e to b828570 Compare July 21, 2025 08:00
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.

2 participants