Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd woes (possibly /usr/lib -> /lib update related)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
crappuccino
n00b
n00b


Joined: 03 Mar 2006
Posts: 13

PostPosted: Fri Sep 08, 2017 3:49 pm    Post subject: systemd woes (possibly /usr/lib -> /lib update related) Reply with quote

i've had some problems with systemd since the update to v234, that was the update where it was moved from /usr/lib to /lib. i faintly remember the update news saying "don't worry, we'll give you a symlink for now", and they didn't... so the next boot failed and i had to edit the grub entry myself. i thought that was the end of it, but then networkd started occasionally grabbing eth0 during boot before udev could rename it (to enp4s0). it wasn't too much of a problem, so i just ignored it.
yesterday, i switched from the gnome profile to the desktop profile, depcleaned a lot of gnome-related stuff (i've always used xfce, i was just running the gnome profile "in case i want to check up on wayland". i've given up on the idea now ;)) and now lightdm fails to start on boot, i'm greeted by a terminal login.

it doesn't show up under systemctl --failed
no lightdm entry in journalctl
status says loaded but inactive (dead)
no entries in systemd debug console

if i log in and start lightdm manually, everything works fine. this seems like another load order problem like the networkd/udev thing before (which still happens). the after= entries in the .service files seem correct, however i feel like they may not be consulted since they've been moved. other things like /etc/systemd/display-manager.service pointing to /usr/lib/systemd/system/lightdm.service (which doesn't exist anymore) show me that i missed doing something for the transition from /usr/lib to /lib. but what? and how do i fix it?

edit: yeah, so fixing that symlink turned out to start lightdm on boot... i have no idea why this file is even used when i have lightdm enabled, not display-manager. networkd still in race condition with udev though.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 5686

PostPosted: Sat Sep 09, 2017 7:57 am    Post subject: Reply with quote

Try first
Code:
emerge -1O /usr/lib/systemd/system
(possibly twice).
Concerning broken symlinks in /etc/systemd: re-enabling the corresponding services (maybe you have to disable them first) should fix them.
It is correct that lightdm is installed as display-manager.service: This is specified in the lightdm service unit.
Back to top
View user's profile Send private message
crappuccino
n00b
n00b


Joined: 03 Mar 2006
Posts: 13

PostPosted: Sat Sep 09, 2017 10:14 am    Post subject: Reply with quote

i didn't know emerge would take something like this as an argument :)
in case anyone else runs into a similar problem, what happened is switching profiles caused lightdm to be rebuilt, moving its service file to the new location without updating the symlink that starts it on boot. same thing happened to other services as well.

the networkd/udev-problem seems to be unrelated to the move though:
https://github.com/coreos/bugs/issues/1767
but it never happened to me before the 234 update, strange.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum