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

Cannot Create OpenSUSE Tumbleweed Instance #2409

Closed
8bitZeta opened this issue Jun 9, 2024 · 3 comments · Fixed by #2410
Closed

Cannot Create OpenSUSE Tumbleweed Instance #2409

8bitZeta opened this issue Jun 9, 2024 · 3 comments · Fixed by #2410

Comments

@8bitZeta
Copy link

8bitZeta commented Jun 9, 2024

Description

Any time I use the existing template for OpenSUSE Tumbleweed, I get stuck in a loop of "user session is ready for ssh".

No idea if this is known or not, but I figured I should submit an issue for it.

@AkihiroSuda
Copy link
Member

Probably a duplicate of:

@AkihiroSuda AkihiroSuda added duplicate This issue or pull request already exists guest/opensuse labels Jun 9, 2024
@afbjorklund
Copy link
Member

afbjorklund commented Jun 10, 2024

The ssh works, but not /run/lima-ssh-ready

/var/log/cloud-init-output.log:LIMA 2024-06-10T09:15:55+02:00| Executing /mnt/lima-cidata/boot/07-etc-environment.sh
/var/log/cloud-init-output.log-++ test -f /etc/environment
/var/log/cloud-init-output.log-+ orig=
/var/log/cloud-init-output.log:LIMA 2024-06-10T09:15:55+02:00| WARNING: Failed to execute /mnt/lima-cidata/boot/07-etc-environment.sh

cat: /etc/environment: No such file or directory

@afbjorklund
Copy link
Member

afbjorklund commented Jun 10, 2024

The error needs to be handled, somehow.

orig=$(test -f /etc/environment && cat /etc/environment || true)

Negation is another popular workaround

orig=$(test ! -f /etc/environment || cat /etc/environment)

@afbjorklund afbjorklund removed the duplicate This issue or pull request already exists label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants