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

app-emulation/lxd: Add keepdir #22535

Closed
wants to merge 1 commit into from
Closed

Conversation

ulziibuyan
Copy link
Contributor

@ulziibuyan ulziibuyan commented Oct 10, 2021

Add keepdir function to create /var/log/lxd directory. Fixes bug https://bugs.gentoo.org/817287

Signed-off-by: Uzi Erdenebileg lzijbuan@gmail.com

Add keepdir function to create /var/log/lxd directory
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @ulziibuyan
Areas affected: ebuilds
Packages affected: app-emulation/lxd

app-emulation/lxd: @juippis, @gentoo/virtualization

Linked bugs

No 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-off

Please 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 [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. no signoff One or more commits do not indicate GCO sign-off. labels Oct 10, 2021
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-10-10 02:45 UTC
Newest commit scanned: 8108086
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/94046c3aec/output.html

@ulziibuyan ulziibuyan changed the title Fix https://bugs.gentoo.org/817287 app-emulation/lxd: Add keepdir /var/log/lxd (Fix 817287) Oct 10, 2021
@ulziibuyan ulziibuyan changed the title app-emulation/lxd: Add keepdir /var/log/lxd (Fix 817287) app-emulation/lxd: Add keepdir Oct 10, 2021
@@ -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
Copy link
Member

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!

@ulziibuyan
Copy link
Contributor Author

ulziibuyan commented Oct 11, 2021

@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 :)

@juippis
Copy link
Member

juippis commented Oct 11, 2021

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:
https://bugs.gentoo.org/817782

Hopefully it gets solved before October is over (for our other contributions) but AFAIK you can still deem the rewards afterwards!

@juippis juippis added the hacktoberfest-accepted PR accepted for Hacktoberfest label Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). hacktoberfest-accepted PR accepted for Hacktoberfest no bug found No Bug/Closes found in the commits. no signoff One or more commits do not indicate GCO sign-off.
Projects
None yet
4 participants