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

release/amd64: Check config variables instead of checking files #1571

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

VexedUXR
Copy link
Contributor

Improve the release script by checking MK_LOADER_IA32 instead of the janky if -f "${BASEBITSDIR}/boot/loader_ia32.efi

I'm hesitant about putting this in install-boot.sh, it feels out of place.
Maybe a new script in release/amd64 that gets sourced by both make-memstick and mkisoimages would be better? I'm not sure..

This also makes the script complain if MK_LOADER_IA32 is yes but the file is missing, instead of silently not copying it.
FWIW it also allows the user to build the ia32 loader, but omit it from the img, though I'm not sure what the use case would be.

I've been meaning to do this since 599273f landed but forgot, so here it is.

Expose configuration variables if we're being sourced. This provides a
convenient way to check them in the release scripts.

Signed-off-by: Ahmad Khalifa <[email protected]>
Check the MK_LOADER_IA32 variable instead of manually checking if the
file exists.

Signed-off-by: Ahmad Khalifa <[email protected]>
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.

1 participant