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
app-emulation/lxd: Add keepdir #22535
Conversation
Add keepdir function to create /var/log/lxd directory
Pull Request assignmentSubmitter: @ulziibuyan app-emulation/lxd: @juippis, @gentoo/virtualization Linked bugsNo bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment. If you do not receive any reply to this pull request, please open or link a bug to attract the attention of maintainers. Missing GCO sign-offPlease read the terms of Gentoo Certificate of Origin and acknowledge them by adding a sign-off to all your commits. In order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
Pull request CI reportReport generated at: 2021-10-10 02:45 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
@@ -146,6 +146,8 @@ src_install() { | |||
newconfd "${FILESDIR}"/lxd-4.0.0.confd lxd | |||
newinitd "${FILESDIR}"/lxd-4.0.0.initd lxd | |||
|
|||
keepdir /var/log/lxd |
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.
Few things. First of all we shouldn't use keepdir
like this, this should be handled by init.d and .service files due to individual configurations.
For openrc the logging is by default disabled, which enables everyone to easily determine the log dir before enabling it, but I see it's enabled by default in the systemd service files.
Then nitpicks:
https://projects.gentoo.org/qa/policy-guide/ebuild-format.html#pg0101 you shouldn't try to use spaces to indent :P
But it is an important and fast temporary fix, so let's merge. Gonna update the init/service files for the next release. Thank you!
@juippis thank you for the informative review. Would you be nice and add hacktoberfest-accepted label to this pull request? Although minor, I think it should still be counted as a contribution :) |
Hey, didn't know this was a thing again. I remember we had this last year. I can't seem to enable the label right now, but asked our GitHub team to resolve it: Hopefully it gets solved before October is over (for our other contributions) but AFAIK you can still deem the rewards afterwards! |
Add keepdir function to create /var/log/lxd directory. Fixes bug https://bugs.gentoo.org/817287
Signed-off-by: Uzi Erdenebileg lzijbuan@gmail.com