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

make nixos-install get along with root on tmpfs #304422

Open
oluceps opened this issue Apr 16, 2024 · 0 comments
Open

make nixos-install get along with root on tmpfs #304422

oluceps opened this issue Apr 16, 2024 · 0 comments

Comments

@oluceps
Copy link
Member

oluceps commented Apr 16, 2024

tmpdir="$(mktemp -d -p "$mountPoint")"

This will create dir tmp.RANDOM under /mnt (which is the default mount point), since it contains random str, it could not be predicted and mounted. root on tmpfs users may mount it on none or tmpfs (as the default behavior disko does), and may cause some building phases ran out the memory.

Maybe adding a nixos-install cmd line arg to customize the tmpdir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants