-
Notifications
You must be signed in to change notification settings - Fork 295
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
base: master
Are you sure you want to change the base?
Switch Tumbleweed to use grub2-bls #22661
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
db131ed
to
4912305
Compare
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); |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return 'grub2-bls' if (!is_sle || !is_leap); | |
return 'grub2-bls' if !is_sle && !is_leap; |
if (is_bootloader_grub2) { | ||
$testapi::distri->get_bootloader_settings()->disable_grub_timeout(); | ||
} else { | ||
$testapi::distri->get_bootloader_settings()->bls_disable_timeout(); | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
4912305
to
990354e
Compare
990354e
to
b828570
Compare
Ticket https://progress.opensuse.org/issues/184861
This should be part of #22576 (for now, see that PR for more context)