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

Add abstraction for the default /tmp/lima directory ? #2339

Open
afbjorklund opened this issue May 12, 2024 · 1 comment · May be fixed by #2345
Open

Add abstraction for the default /tmp/lima directory ? #2339

afbjorklund opened this issue May 12, 2024 · 1 comment · May be fixed by #2345

Comments

@afbjorklund
Copy link
Contributor

afbjorklund commented May 12, 2024

Description

It doesn't work so great in a multi-user environment, and doesn't work on Windows (compared with e.g. C:\TEMP)

i.e. when several users are sharing a server, they will see the files from the other users in the shared /tmp/lima

Hosts based on Fedora put /tmp in RAM, so you need to use /var/tmp if you want to use a normal disk directory.

Should we have some placeholder value for the default.yaml, instead of the "/tmp/lima"? Similar to LIMA_HOME.

@afbjorklund
Copy link
Contributor Author

afbjorklund commented May 12, 2024

One possible solution is that "/tmp/lima" is the placeholder, and replace it with $TMPDIR/lima.

i.e. something like filepath.Join(os.TempDir(), "lima"), so that it works also on Windows


systemd would try to use some complex scheme:

https://systemd.io/TEMPORARY_DIRECTORIES/

But it should be optional (opt-in), since it breaks things.

https://0pointer.de/blog/projects/tmp.html re: /tmp

@afbjorklund afbjorklund linked a pull request May 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant