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

Create sudoers file internally instead of calling limactl sudoers #7966

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

jandubois
Copy link
Member

The limactl sudoers command will fail if socket_vmnet is not yet installed into the secure path. So we would need to ask the user for the sudo password twice: once to install socket_vmnet, and then again to install the sudoers file. By "guessing" the content beforehand we can install both at the same time.

Signed-off-by: Jan Dubois jan.dubois@suse.com
(cherry picked from commit 2fabc34)

The `limactl sudoers` command will fail if socket_vmnet is not yet
installed into the secure path. So we would need to ask the user for
the sudo password twice: once to install socket_vmnet, and then again
to install the sudoers file. By "guessing" the content beforehand we
can install both at the same time.

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
(cherry picked from commit 2fabc34)
@jandubois jandubois requested a review from Nino-K December 17, 2024 22:21
@Nino-K Nino-K enabled auto-merge December 17, 2024 22:24
@Nino-K Nino-K merged commit bc7bc49 into rancher-sandbox:release-1.17 Dec 17, 2024
20 checks passed
@jandubois jandubois deleted the sudoers branch December 18, 2024 00:58
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