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

Fix double grub entries in hybrid ISO images #2347

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

schaefi
Copy link
Collaborator

@schaefi schaefi commented Aug 9, 2023

As consequence of using the "source" grub command instead of the "configfile" command to load the grub config we now see double loading of the same file on ISO media. The reason here is that kiwi ISO media is always hybrid which means it embeds an MBR into the ISO for which the "source" command now can read the same file through two different device paths. This does not happen with the "configfile" grub command. Thus this patch uses "configfile" if we produce an ISO image and "source" for all other image types. The commit also fixes the custom grub template used for ISO images in a way that we only set the "serial" command if there is a serial configuration provided along with the image description.

As consequence of using the "source" grub command instead
of the "configfile" command to load the grub config we now
see double loading of the same file on ISO media. The reason
here is that kiwi ISO media is always hybrid which means it
embeds an MBR into the ISO for which the "source" command now
can read the same file through two different device paths.
This does not happen with the "configfile" grub command.
Thus this patch uses "configfile" if we produce an ISO image
and "source" for all other image types. The commit also fixes
the custom grub template used for ISO images in a way that
we only set the "serial" command if there is a serial
configuration provided along with the image description.
@schaefi schaefi requested a review from Conan-Kudo August 9, 2023 14:12
@schaefi schaefi self-assigned this Aug 9, 2023
@Conan-Kudo Conan-Kudo merged commit 8ada037 into master Aug 9, 2023
10 checks passed
@Conan-Kudo Conan-Kudo deleted the fix_grub_double_entries branch August 9, 2023 14:33
aaannz added a commit to aaannz/kiwi_sle15 that referenced this pull request Oct 15, 2024
SLE Kiwi 9.24 does not include OSInside/kiwi#2347
so newer unit tests need to be adapted.
aaannz added a commit to aaannz/kiwi_sle15 that referenced this pull request Oct 15, 2024
First SLE Kiwi 9.24 does not include [0] so newer unit
tests need to be adapted.

0: OSInside/kiwi#2347

Second fix is removing unused mock.
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