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 optional prefix parameter to the template #1654

Closed
afbjorklund opened this issue Jul 4, 2023 · 2 comments · Fixed by #1655
Closed

Add optional prefix parameter to the template #1654

afbjorklund opened this issue Jul 4, 2023 · 2 comments · Fixed by #1655

Comments

@afbjorklund
Copy link
Member

Description

Currently the prefix is hardcoded to /usr/local, for installing guestagent and containerd.

But that doesn't work, if /usr is read-only (like on Container Linux, which uses /opt).

So add an optional parameter.

# Prefix to use for installing guest agent, and containerd with dependencies (if configured)
# 🟢 Builtin default: /usr/local
prefix: null
@afbjorklund
Copy link
Member Author

It worked OK anyway on Fedora CoreOS, which does a symlink to /var:

/usr/local -> ../var/usrlocal

But not on the original CoreOS (Flatcar Container Linux), which does not:

install: cannot create regular file '/usr/local/bin/lima-guestagent': Read-only file system

@afbjorklund
Copy link
Member Author

afbjorklund commented Jul 4, 2023

Also needs another Flatcar fix, to set up the symlink from /mnt to /var/mnt.

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