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

Alpine instance with alpine user doesn't load /etc/environment in ssh sessions on first boot #2879

Open
jandubois opened this issue Nov 8, 2024 · 0 comments
Labels
guest/alpine Guest: Alpine

Comments

@jandubois
Copy link
Member

This issue only affects the alpine template when using an alpine user name:

shell start --set '.user.name="alpine"' template://alpine

It does not affect the alpine-iso template.

The /etc/environment is loaded in ssh session after a reboot of the instance.

This also explains why this doesn't happen for any other user name except for alpine: in that case the 00-alpine-user-group.sh boot script will delete the alpine user created by cloud-init and reboot the instance.

Restarting the sshd service does not make a difference; it requires a reboot to fix itself.

Note: /etc/environment is loaded via PAM, but I couldn't find anything to force a reload.

@jandubois jandubois added the guest/alpine Guest: Alpine label Nov 8, 2024
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

No branches or pull requests

1 participant