-
Notifications
You must be signed in to change notification settings - Fork 601
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
CLI flag to generate autostart files #2151
Conversation
487e118
to
800b924
Compare
4aa5475
to
166cb8e
Compare
409b359
to
9f5bdf2
Compare
I guess the note in the documentation would be good since the behaviour of |
Review request @lima-vm/maintainers |
Moved to separate command, I guess now it's ready. @lima-vm/maintainers |
f0218cc
to
8a32a29
Compare
8a32a29
to
d66089e
Compare
d66089e
to
6eddf3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the feedback is minor, but the incorrect order of the template rendering arguments is a blocker.
ea38cdd
to
69288b9
Compare
@jandubois Thanks for your review 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the PR is almost ready for merging.
The only functional change I would like to see is the removal of the error message when an instance is deleted and no autostart file exists. That is not an error, but expected.
Otherwise I found some conditionals that seem to be always true/false and therefore can be eliminated.
The rest of the feedback is just nitpicking about wording/formatting of the log messages and help text.
cfd118f
to
1bada86
Compare
1bada86
to
ff8153e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think 2 log messages are not correct yet.
The other 2 comments are just removing the parens in (%q)
for consistency.
Otherwise it looks good to go.
--enabled`. This command facilitates the generation of unit files for `launchd/systemd`, providing users with a straightforward way to control `limactl` autostart behavior. Signed-off-by: roman-kiselenko <roman.kiselenko.dev@gmail.com>
ff8153e
to
1ed3dc2
Compare
@jandubois Thank you for your careful review 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, looks great!
Added a new public CLI command:
limactl start-at-login INSTANCE --enabled
.This command facilitates the generation of unit files for
launchd/systemd
, providing users with a straightforward way to controllimactl
autostart behavior.Simplified Integration:
Adjusted
launchd/systemd
integration to start thelimactl hostagent
directly, simplifying the launch process.Fix #2142
Partialy based on #2140