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

contrib: update start-crc-bundle to use UEFI boot #201

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

lstocchi
Copy link
Contributor

@lstocchi lstocchi commented Oct 2, 2024

it removes all the legacy kernel related options (kernel, initrd, kernel-cmdline) and replace them with the --bootloader efi.

I found out that there is an efistore.nvram file inside the .crc/machine.crc path. It looks logical to use it but I'm not sure if the path can be different based on the bundle_path or anything else.

@openshift-ci openshift-ci bot requested review from baude and praveenkumar October 2, 2024 14:46
Copy link
Collaborator

@cfergeau cfergeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the use of chore in the short log, doesn't this word have a negative connotation? https://www.merriam-webster.com/dictionary/chore I think of 3. when I see it, even if I guess it's meant as 2.?

@lstocchi
Copy link
Contributor Author

lstocchi commented Oct 2, 2024

Not sure about the use of chore in the short log, doesn't this word have a negative connotation? https://www.merriam-webster.com/dictionary/chore I think of 3. when I see it, even if I guess it's meant as 2.?

In my prev projects we used conventional commits and chore was related to changes that don't directly affect the application's behavior or functionality.

@lstocchi lstocchi changed the title chore: update start-crc-bundle to use UEFI boot contrib: update start-crc-bundle to use UEFI boot Oct 3, 2024
@lstocchi
Copy link
Contributor Author

lstocchi commented Oct 3, 2024

@cfergeau I updated the label to the commit to contrib: to be in line with the modifications done in the past

@lstocchi lstocchi requested a review from cfergeau October 3, 2024 08:18
--kernel "${BUNDLE_PATH}/${KERNEL}" \
--initrd "${BUNDLE_PATH}/${INITRD}" \
--kernel-cmdline "${CMDLINE}" \
--bootloader efi,variable-store=efistore.nvram,create \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create will ensure that efistore.nvram is created, we don't need to reuse "$HOME/.crc/machines/crc/efistore.nvram" which may not exist
Using a new efi variable store will ensure we are as close as possible to a 'blank state' for our VM.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i misunderstood your prev comment. Updated

@lstocchi lstocchi force-pushed the i198 branch 2 times, most recently from 497978d to 1e629bc Compare October 4, 2024 14:47
it removes all the legacy kernel related options (kernel, initrd, kernel-cmdline) and replace them with the --bootloader efi.
@cfergeau
Copy link
Collaborator

cfergeau commented Oct 7, 2024

/lgtm
/approve

Copy link

openshift-ci bot commented Oct 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfergeau

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Oct 7, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 80c8512 into crc-org:main Oct 7, 2024
6 checks passed
@lstocchi lstocchi deleted the i198 branch October 11, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants