-
Notifications
You must be signed in to change notification settings - Fork 81
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
[RHELC-638] Splitting bootloader code #1080
base: main
Are you sure you want to change the base?
Conversation
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.
LGTM. Needs a rebase then integration test run
# Copyright(C) 2021 Red Hat, Inc. | ||
# Copyright(C) 2024 Red Hat, Inc. |
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.
Just FYI, not needed to be changed. Doesn't hurt but doesn't matter
dev_number = _get_device_number(convert2rhel.bootloader.grub.get_efi_partition()) | ||
blk_dev = convert2rhel.bootloader.grub.get_grub_device() |
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.
We could import grub and instead use this to make it simpler
dev_number = _get_device_number(convert2rhel.bootloader.grub.get_efi_partition()) | |
blk_dev = convert2rhel.bootloader.grub.get_grub_device() | |
dev_number = _get_device_number(grub.get_efi_partition()) | |
blk_dev = grub.get_grub_device() |
f70f27f
to
ea2ec6b
Compare
import six | ||
|
||
from convert2rhel import utils | ||
from convert2rhel.bootloader import bootloader, grub |
Check notice
Code scanning / CodeQL
Unused import Note
|
||
__metaclass__ = type | ||
|
||
import copy |
Check notice
Code scanning / CodeQL
Unused import Note
import six | ||
|
||
from convert2rhel import utils | ||
from convert2rhel.bootloader import bootloader, grub |
Check notice
Code scanning / CodeQL
Unused import Note
|
||
|
||
# TODO(pstodulk): put here a real examples of an output.. | ||
_SEC_STDOUT_ENABLED = "secure boot enabled" |
Check notice
Code scanning / CodeQL
Unused global variable Note
|
||
# TODO(pstodulk): put here a real examples of an output.. | ||
_SEC_STDOUT_ENABLED = "secure boot enabled" | ||
_SEC_STDOUT_DISABLED = "e.g. nothing..." |
Check notice
Code scanning / CodeQL
Unused global variable Note
|
||
|
||
# TODO(pstodulk): put here a real examples of an output.. | ||
_SEC_STDOUT_ENABLED = "secure boot enabled" |
Check notice
Code scanning / CodeQL
Unused global variable Note
|
||
# TODO(pstodulk): put here a real examples of an output.. | ||
_SEC_STDOUT_ENABLED = "secure boot enabled" | ||
_SEC_STDOUT_DISABLED = "e.g. nothing..." |
Check notice
Code scanning / CodeQL
Unused global variable Note
We do have unit tests failing here too |
This PR separates bootloader specific functions to a new bootloader.py file and removes them from their current location in grub.py. A new folder
bootloader
has been created to hold both the grub.py and bootloader.py files. A new unit test file for the bootloader code has been created as well and given it's own folder to contain the bootloader and grub unit tests.Jira Issues: RHELC-638
Checklist
[RHELC-]
is part of the PR titleRelease Pending
if relevant