Skip to content

Rename /home/${USER}.linux to /home/${USER}.guest#4578

Merged
jandubois merged 1 commit intolima-vm:masterfrom
AkihiroSuda:home-path
Feb 14, 2026
Merged

Rename /home/${USER}.linux to /home/${USER}.guest#4578
jandubois merged 1 commit intolima-vm:masterfrom
AkihiroSuda:home-path

Conversation

@AkihiroSuda
Copy link
Member

Fix #4577

Newly created instances now use /home/${USER}.guest as the home directory. To maintain compatibility, /home/${USER}.linux is created as a symlink to ${USER}.guest.

For existing instances, the symlink is created in the opposite direction.

Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

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

Looks mostly good, but has one bug (see below).

Also pkg/cidata/template_test.go has a hardcoded /home/foo.linux; maybe it should be updated to the new convention?

Fix issue 4577

Newly created instances now use `/home/${USER}.guest` as the home directory.
To maintain compatibility,  `/home/${USER}.linux` is created as a symlink to `${USER}.guest`.

For existing instances, the symlink is created in the opposite direction.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@jandubois jandubois merged commit 5fdd0ca into lima-vm:master Feb 14, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename /home/${USER}.linux to /home/${USER}.guest

2 participants