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

Change incus-agent install location to writeable location #669

Merged
merged 1 commit into from
May 22, 2024

Conversation

m2Giles
Copy link
Contributor

@m2Giles m2Giles commented Mar 26, 2024

By default the install script for incus agent attempts to install to /lib. This changes it to write to /etc instead. Many systems mount /usr read-only and /lib is usually a symlink to /usr/lib. /etc/ is normally a writable location on all systems.

@m2Giles m2Giles requested a review from stgraber as a code owner March 26, 2024 18:53
@stgraber
Copy link
Member

Hello,

It looks like your commit is missing the expected Signed-off-by line.

In general I'd still prefer we attempt to install to /lib/systemd and then fallback to /etc/systemd if we can't.

That's for two reasons:

  • This keeps allowing us to update the units and scripts on systems that come with the agent pre-installed (as those will always be in /lib)
  • This allows the user to decide to mask or fully override the units which they can't do if they're already in /etc

@m2Giles
Copy link
Contributor Author

m2Giles commented Mar 27, 2024

I apologize for the missing sign-off. I'll add some logic to fallback to /etc.

@stgraber
Copy link
Member

No worries, thanks for your work!

This changes the default agent install location to /usr/lib/ with
fallback to /lib/ and eventually /etc/, therefore supporting immutable
systems where only /etc is writable.

Signed-off-by: m2 <69128853+m2Giles@users.noreply.github.com>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@stgraber stgraber merged commit 2c5a38b into lxc:main May 22, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants