lima-vm / lima-vm/lima

`limactl shell` return immediately with exit code 0

Open
#1,939 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

Most recent main version doesn't allocate tty (regardless of setting `--tty` flag) and immediately exits with exit code 0.

```
limactl shell --log-level trace --tty --workdir / lima date
DEBU[0000] changeDirCmd="cd / || exit 1"
DEBU[0000] Failed to detect CPU features. Assuming that AES acceleration is available on this Apple silicon.
DEBU[0000] OpenSSH version 9.0.1 detected
DEBU[0000] AES accelerator seems available, prioritizing aes128-gcm@openssh.com and aes256-gcm@openssh.com
DEBU[0000] executing ssh (may take a long)): [/usr/bin/ssh -F /dev/null -o IdentityFile="/Users/USER/.lima/_config/user" -o IdentityFile="/Users/USER/.ssh/id_ed25519" -o IdentityFile="/Users/USER/.ssh/id_rsa_rh" -o IdentityFile="/Users/USER/.ssh/id_rsa_rpi_flux" -o IdentityFile="/Users/USER/.ssh/id_rsa_sumo" -o IdentityFile="/Users/USER/.ssh/id_rsa_team_k8s_bot_redhat_certification" -o IdentityFile="/Users/USER/.ssh/teamk8s_bot" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers="^aes128-gcm@openssh.com,aes256-gcm@openssh.com" -o User=lima -o ControlMaster=auto -o ControlPath="/Users/USER/.lima/lima/ssh.sock" -o ControlPersist=yes -t -o SendEnv="COLORTERM" -q -p 53031 127.0.0.1 -- cd / || exit 1 ; exec "$SHELL" --login -c date]
Mon Oct 23 15:20:44 UTC 2023
```

### `limactl` version

```
limactl -v
limactl version HEAD-b5aa0dd
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.