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

Make sure that root is in the sudoers file on Alpine #2877

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

jandubois
Copy link
Member

Because the Alpine cloud image doesn't include /etc/sudoers, and cloud-init just writes a single line to it:

#includedir /etc/sudoers.d

Without an entry for root we cannot run user provisioning scripts because we use sudo -u $USER … to do it.

@jandubois jandubois added this to the v1.0.2 milestone Nov 8, 2024
@AkihiroSuda AkihiroSuda added the guest/alpine Guest: Alpine label Nov 8, 2024
@jandubois jandubois marked this pull request as draft November 8, 2024 06:37
Because the Alpine cloud image doesn't include /etc/sudoers,
and cloud-init just writes a single line to it:

    #includedir /etc/sudoers.d

Without an entry for root we cannot run user provisioning scripts
because we use `sudo -u $USER …` to do it.

Signed-off-by: Jan Dubois <[email protected]>
@jandubois jandubois marked this pull request as ready for review November 8, 2024 08:14
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit 5d06891 into lima-vm:master Nov 20, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guest/alpine Guest: Alpine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants