Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625462 - sys-apps/systemd-234: symlink does not work with dracut
Summary: sys-apps/systemd-234: symlink does not work with dracut
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:
Depends on:
Blocks:
 
Reported: 2017-07-17 18:59 UTC by Maciej Piechotka
Modified: 2017-07-18 17:01 UTC (History)
0 users

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 Maciej Piechotka 2017-07-17 18:59:24 UTC
/usr/lib/systemd/systemd should be relative symlink as it does not work in dracut where / is mounted in /sysroot before pivot root.
Comment 1 Mike Gilbert gentoo-dev 2017-07-17 19:06:43 UTC
Thanks for reporting this.

The news item does mention that you should rebuild your initramfs after upgrading -- that should cause /lib/systemd/systemd to be called directly.
Comment 2 Mike Gilbert gentoo-dev 2017-07-17 19:08:38 UTC
I guess it really has more to do with your kernel command line (init=/lib/systemd/systemd). Anyway, I'll look into using a relative symlink again.
Comment 3 Maciej Piechotka 2017-07-17 19:14:28 UTC
Yes. Sorry for not being clear enough - I meant init= (removing /usr fixed the problem).
Comment 4 Mike Gilbert gentoo-dev 2017-07-18 03:35:26 UTC
I just tested with init=/usr/lib/systemd/systemd, and did not have any trouble booting with a dracut-045 initramfs.

Please provide more exact instructions to reproduce the problem.
Comment 5 Mike Gilbert gentoo-dev 2017-07-18 17:01:29 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe9f13cf6189140f1e89481cb87a0f544a50657c

commit fe9f13cf6189140f1e89481cb87a0f544a50657c
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Tue Jul 18 12:56:24 2017 -0400

    sys-apps/systemd: use relative symlinks for systemd and systemd-shutdown

    Bug: https://bugs.gentoo.org/625462
    Package-Manager: Portage-2.3.6_p16, Repoman-2.3.2_p84

 sys-apps/systemd/{systemd-234-r1.ebuild => systemd-234-r2.ebuild} | 4 ++--
 sys-apps/systemd/systemd-9999.ebuild                              | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)