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

Specify install location for k0s #589

Open
khumps opened this issue Nov 2, 2023 · 5 comments
Open

Specify install location for k0s #589

khumps opened this issue Nov 2, 2023 · 5 comments

Comments

@khumps
Copy link

khumps commented Nov 2, 2023

The machine I am trying to install k0s on has a read-only /usr partition
This causes the install command for k0s to fail

executing `sudo -s -- install -m 0750 -o root -g root \"/tmp/tmp.lNe2DW8TD2\" \"/usr/local/bin/k0s\
(stderr) install: cannot create regular file '/usr/local/bin/k0s': Read-only file system

https://docs.k0sproject.io/v1.28.2+k0s.0/troubleshooting/#k0s-not-working-with-read-only-usr does not seem to address what to do if you can not install the k0s binary in /usr.

@till
Copy link

till commented Nov 2, 2023

k0sctl should handle that already. Which OS are you using? I am using Flatcar Linux, also comes with readonly /usr.

@till
Copy link

till commented Nov 2, 2023

(I am also using a profile and k0s ends up in /opt)

@kke
Copy link
Contributor

kke commented Nov 3, 2023

Flatcar is the only one that has a custom K0sBinaryPath() currently.

@kke
Copy link
Contributor

kke commented Nov 6, 2023

It would be possible to detect when /usr is readonly and then use /opt as fallback. I'd rather not make it configurable because I have a hunch that it can open a new can of worms.

@kke
Copy link
Contributor

kke commented Nov 6, 2023

But knowing which OS you're running on @khumps would be interesting.

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

No branches or pull requests

3 participants