Skip to content
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

Fixed grub mbrid file search #2391

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Conversation

schaefi
Copy link
Collaborator

@schaefi schaefi commented Nov 8, 2023

To identify the root device for ISO images (live and install media) that boots via grub2, kiwi uses a grub2 --file search. The searched file was named /boot/mbrid, however this is not a unique name and could be found on other devices of the system as well. To connect the search to the correct media this commit changes the search to an ID based method which is unique to the image build process. This Fixes #2389

To identify the root device for ISO images (live and install media)
that boots via grub2, kiwi uses a grub2 --file search. The searched
file was named /boot/mbrid, however this is not a unique name and
could be found on other devices of the system as well. To connect
the search to the correct media this commit changes the search to
an ID based method which is unique to the image build process.
This Fixes #2389
@schaefi schaefi requested a review from Conan-Kudo November 8, 2023 14:37
@schaefi schaefi self-assigned this Nov 8, 2023
@Conan-Kudo Conan-Kudo merged commit ca115b7 into master Nov 8, 2023
10 checks passed
@Conan-Kudo Conan-Kudo deleted the fix_early_boot_file_search branch November 8, 2023 15:11
schaefi added a commit that referenced this pull request Nov 10, 2023
On filesystems without a UUID (e.g squashfs) the fallback boot id
setup should apply if neither UUID nor MBR ID is present. This
is a followup fix for Issue #2391
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.

Regression in new builds: ISO always auto-boots to disk if there is already an OS installed
2 participants