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

rosetta: add option to ignore rosetta failure when installation cancelled #202

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

lstocchi
Copy link
Contributor

@lstocchi lstocchi commented Oct 4, 2024

This adds a ignore-if-missing option that allows vfkit to not fail if the rosetta installation is cancelled by the user.
So far, if the rosetta installation was cancelled vfkit exited with an error. This behavior still exists if ignore-if-missing option is not set.
it fixes #160

@lstocchi lstocchi force-pushed the i160 branch 2 times, most recently from 39cc8c3 to 92a0169 Compare October 4, 2024 14:44
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.

Haven't tested this extensively, but looks good to me.
It would be nice to update the documentation as well to mention the new option, and to add a Fixes https://github.com/crc-org/vfkit/issues/160 in the commit log so that the corresponding issue is automatically fixed.

pkg/vf/rosetta_arm64.go Outdated Show resolved Hide resolved
pkg/vf/rosetta_arm64.go Outdated Show resolved Hide resolved
pkg/vf/rosetta_arm64_test.go Show resolved Hide resolved
@lstocchi
Copy link
Contributor Author

lstocchi commented Oct 8, 2024

Forgot to update the documentation, updating it

pkg/vf/rosetta_arm64.go Outdated Show resolved Hide resolved
Luca Stocchi added 2 commits October 11, 2024 18:15
…lled

    this adds a ignore-if-missing option that allows vfkit to not fail if the rosetta installation do not succeed for some reason (e.g. user cancelled installation).
    So far, if the rosetta installation was cancelled or failed vfkit exited with an error. This behavior still exists if ignore-if-missing option is not set or it is false.
    This will be used by podman bc there could be a fallback and rosetta could also be not mandatory containers/podman#23153
it fixes crc-org#160
@cfergeau
Copy link
Collaborator

/approve
/lgtm

Copy link

openshift-ci bot commented Oct 17, 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-merge-bot openshift-merge-bot bot merged commit 0ca2af7 into crc-org:main Oct 17, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add option to ignore rosetta's failure to install
2 participants