Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 885287 - sys-apps/systemd-251.7: Symbolic link /usr/lib/sysctl.d/99-sysctl.conf points to /etc/sysctl.conf which does not exist
Summary: sys-apps/systemd-251.7: Symbolic link /usr/lib/sysctl.d/99-sysctl.conf points...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
: 889338 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-12-10 08:17 UTC by Pacho Ramos
Modified: 2023-07-22 20:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2022-12-10 08:17:20 UTC
It seems /etc/sysctl.conf is not present anymore and, as a consequence, the link is dead
QA Notice: Symbolic link /usr/lib/sysctl.d/99-sysctl.conf points to /etc/sysctl.conf which does not exist.

Best regards
Comment 1 Pacho Ramos gentoo-dev 2023-01-02 09:48:13 UTC
*** Bug 889338 has been marked as a duplicate of this bug. ***
Comment 2 Mike Gilbert gentoo-dev 2023-03-06 16:19:39 UTC
To eliminate the symlink, we would need some plan to migrate away from /etc/systctl.conf on existing systems.
Comment 3 Pacho Ramos gentoo-dev 2023-03-06 18:52:10 UTC
Maybe it would be possible to drop the symlink when /etc/systctl.conf is not present in the system :/
Comment 4 Mike Gilbert gentoo-dev 2023-03-06 19:22:22 UTC
I guess we could do something like this in pkg_postinst:

>if [[ -e ${EROOT}/etc/sysctl.conf ]]; then
>	ln -snf ../sysctl.conf "${EROOT}/etc/sysctl.d/99-systemd.conf
> fi
Comment 5 Larry the Git Cow gentoo-dev 2023-07-22 20:50:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e92f7252b53bce0359a7dedbf02d5d6cb3dc1c44

commit e92f7252b53bce0359a7dedbf02d5d6cb3dc1c44
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-07-22 20:48:52 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-07-22 20:48:52 +0000

    sys-apps/systemd: create sysctl.d symlink only when /etc/sysctl.conf exists
    
    Closes: https://bugs.gentoo.org/885287
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/systemd/systemd-254_rc2.ebuild | 8 +++++---
 sys-apps/systemd/systemd-9999.ebuild    | 8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)