BCF-6454: Linux system state backup error "Unknown bootloader (GRUB2-BLS)"#79
Open
Andrus Suvalau (svlv) wants to merge 1 commit intodevelopfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds support for the GRUB2-BLS (Boot Loader Specification) bootloader to address recovery failures on systems using this bootloader configuration. The implementation treats GRUB2-BLS similarly to GRUB2-EFI during the recovery process.
Changes:
- Added GRUB2-BLS detection logic based on the presence of
blscfgcommand in grub.cfg - Configured bootloader file checks for both RHEL-based systems (using /boot) and openSUSE Tumbleweed (using /boot/efi)
- Implemented initramfs rebuild support using
sdbootutilfor GRUB2-BLS systems
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| usr/share/rear/layout/save/default/445_guess_bootloader.sh | Adds detection logic for GRUB2-BLS by checking for blscfg command in grub.cfg |
| usr/share/rear/layout/save/default/450_check_bootloader_files.sh | Defines configuration files to check for GRUB2-BLS on both RHEL and openSUSE systems |
| usr/share/rear/finalize/default/050_prepare_checks.sh | Updates documentation to include GRUB2-BLS in the list of supported bootloaders |
| usr/share/rear/finalize/SUSE_LINUX/i386/550_rebuild_initramfs.sh | Implements initramfs regeneration for GRUB2-BLS using sdbootutil |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
usr/share/rear/finalize/SUSE_LINUX/i386/550_rebuild_initramfs.sh
Outdated
Show resolved
Hide resolved
Kyrylo Vorobiov (kiru6a)
previously approved these changes
Feb 18, 2026
- Ignore the values 'none', 'grub2-bls' and 'grub2-efi' obtained from /etc/sysconfig/bootloader when detecting bootloader. 'grub2-bls' must be treated as GRUB2-EFI on pure EFI systems, or as GRUB2 on BIOS and hybrid systems. 'grub2-efi' is ignored because this value may also be used on hybrid systems, and after recovery a hybrid systems may become a pure EFI system. - Add BLS files to CHECK_CONFIG_FILES in default.conf because these files are common to botloaders that follow BLS. - On SUSE systems using GRUB with BLS, call sdbootutil during recovery to regenerate initrds and boot entries.
99aa1c9 to
5b9d943
Compare
Barys Barysenka (BarysBarysenka)
approved these changes
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Details:
Type: Enhancement
Impact: Normal
Reference to related issue (URL): https://n-able.atlassian.net/browse/BCF-6454
How was this pull request tested?
Manually recovered openSUSE Tumbleweed, RHEL 10, Fedora 43 and Rocky 9.6 cloud image in Azure
Description of the changes in this pull request:
Add support for
GRUB2-BLS. The recovery process is identical toGRUB2-EFI.