Summary: | stage3 - missing symlinks from sys-apps/opentmpfiles in /etc/runlevel | ||
---|---|---|---|
Product: | Gentoo Release Media | Reporter: | Piotr Karbowski (RETIRED) <slashbeast> |
Component: | Stages | Assignee: | William Hubbs <williamh> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bkohler, chesguy, openrc, releng, williamh |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Piotr Karbowski (RETIRED)
2018-03-03 19:55:00 UTC
Bump Bump I noticed the same thing using stage3-amd64-20180408T214502Z.tar.xz. Confirmed that a couple other systems I've installed are also missing opentmpfiles in the runlevels. Found this bug trying to figure out if I should or shouldn't have these services enabled. Bump >>> Installing (17 of 205) sys-apps/opentmpfiles-0.1.3::gentoo * checking 6 files for package collisions >>> Merging sys-apps/opentmpfiles-0.1.3 to / --- /etc/ --- /etc/init.d/ >>> /etc/init.d/opentmpfiles-setup >>> /etc/init.d/opentmpfiles-dev --- /etc/conf.d/ >>> /etc/conf.d/opentmpfiles-setup >>> /etc/conf.d/opentmpfiles-dev --- /usr/ --- /usr/share/ --- /usr/share/doc/ >>> /usr/share/doc/opentmpfiles-0.1.3/ >>> /usr/share/doc/opentmpfiles-0.1.3/README.md.bz2 --- /bin/ >>> /bin/tmpfiles * Auto-adding 'opentmpfiles-dev' service to your sysinit runlevel ln: failed to create symbolic link '/etc/runlevels/sysinit/opentmpfiles-dev': No such file or directory * Auto-adding 'opentmpfiles-setup' service to your boot runlevel ln: failed to create symbolic link '/etc/runlevels/boot/opentmpfiles-setup': No such file or directory >>> sys-apps/opentmpfiles-0.1.3 merged. opentmpfiles maintainers: should the opentmpfiles ebuild "mkdir -p" those paths to allow runfile additions w/o depending directly on openrc? As an example of a package handling this correctly, sys-apps/kmod does the following: # Add kmod to the runlevel automatically if this is the first install of this package. if [[ -z ${REPLACING_VERSIONS} ]]; then if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then mkdir -p "${EROOT%/}"/etc/runlevels/sysinit fi if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes fi fi The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e57f808ac2cdb22feb6c4ac856d71ff124c88dfd commit e57f808ac2cdb22feb6c4ac856d71ff124c88dfd Author: William Hubbs <williamh@gentoo.org> AuthorDate: 2018-12-04 15:06:28 +0000 Commit: William Hubbs <williamh@gentoo.org> CommitDate: 2018-12-04 15:10:39 +0000 sys-apps/opentmpfiles: create runlevel directories if they do not exist Closes: https://bugs.gentoo.org/649480 Package-Manager: Portage-2.3.51, Repoman-2.3.11 Signed-off-by: William Hubbs <williamh@gentoo.org> sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild | 1 + sys-apps/opentmpfiles/opentmpfiles-9999.ebuild | 1 + 2 files changed, 2 insertions(+) Hi, I've just hit this bug again, I've used the 20190117T214502Z tarball of amd64 stage3 and the symlinks to opentmpfiles are not there. The commit that William made is on version 0.2 that is stable so the fix should be there. I noticed that the original code William made is no more, now we have pkg_postinst() { if [[ -z $REPLACING_VERSIONS ]]; then add_service opentmpfiles-dev sysinit add_service opentmpfiles-setup boot fi } which does not seems to work. |