Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd gone crazy : screen flashes at boot, can't log in
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Sat Feb 06, 2016 10:14 pm    Post subject: systemd gone crazy : screen flashes at boot, can't log in Reply with quote

Hello,

Well, don't remember what has been upgraded last time I ran emerge -Du @world, (besides Nvidia drivers), but since, I just can't reach my box.
Boot time ends with no gdm showing up ; well I can deal with that... But the worse thing is that I can't even get to log in, from tty, since the screen, (and lights on the keyboard) keep flashing, really fast, (faster than when "kernel panic" strikes).
I hit the keys "root", intending to log as root, despite flashes, but some letters need to be hit several times to get on the screen ; just can't get my password to be validated....

So, I've chroot in, recompile kernel, but couldn't get to run module-rebuild, ending up with:
Code:
 Failed to validate a sane '/dev'.
bash process substitute doesn't work; this may be an indication of a broken '/dev/fd'.


Is it because /usr/portage is on a different fs ? Tried to mount the fs into chrooted environment, but no result.

I also mounted /var/log, so I could dig in logs and try to find out why boot is so funky...Ran journalctl from chrooted environment, but no luck : I got "No journal files were found".

So I ended up recording the boot sequence, (it goes so fast before it switches to flashing tty, that I can't even get to read where it twisted).

So what I see (in slow motion from my cell phone recorder):
Code:
[ OK ] Starting Accounts Service...
[ OK ] Created slice user-104.slice. 
          Starting User Manager for UID 104
[ OK ] Started Session  c1 for user gdm.
[ OK ] Started User Manager for UID 104...
          Stopping User Manager for UID 104...
[ OK ] Stopped User Manage for UID 104.
[ OK ] Removed slice user-104.slice.
[ OK ] Created slice user-104.slice. 
          Starting User Manager for UID 104
[ OK ] Started Session  c2 for user gdm.
[ OK ] Started User Manager for UID 104...
          Stopping User Manager for UID 104...
[ OK ] Stopped User Manage for UID 104.
[ OK ] Removed slice user-104.slice.
[ OK ] Created slice user-104.slice. 
          Starting User Manager for UID 104
[ OK ] Started Session  c3 for user gdm.
[ OK ] Started User Manager for UID 104...
          Stopping User Manager for UID 104...
[ OK ] Stopped User Manage for UID 104.
[ OK ] Removed slice user-104.slice.
[ OK ] Created slice user-104.slice. 
          Starting User Manager for UID 104
[ OK ] Started Session  c4 for user gdm.
[ OK ] Started User Manager for UID 104...
          Stopping User Manager for UID 104...
[ OK ] Stopped User Manage for UID 104.
[ OK ] Removed slice user-104.slice.


And so on in an infinite loop with c ("from Started Session c* for user gdm".) increasing. I thing that's what lead to the flickering / flashing tty.

So, is there a way I could boot interactively with systemd, like with OpenRC ? What did I miss with not being able to emerge --ask @module-rebuild ( Failed to validate a sane '/dev'.), after I recompile my kernel, from chroot env ? Any clue about slice user-104.slice ?

Regards
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Sun Feb 07, 2016 1:07 pm    Post subject: Reply with quote

So far I managed to boot in rescue mode, editing grub before boot time, and adding "rescue" at the end of the line starting with "linux" ; so, I do boot and get a nice and shiny tty, (no flickering or shining behaviour).
So now, I can get to see what journalctl -r is up to.... Well, first hint, it's talking about a nvidia driver not matching the kernel version, or so. I'm going to recompile, and then run @module-rebuild.
Let's start from here....
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Sun Feb 07, 2016 8:45 pm    Post subject: Reply with quote

Well, upgrading the kernel didn't change much besides the fact that now, boot time doesn't end up with endless loop on "Created slice user-104.slice", it just hangs on
Code:
[ OK ] Started User Manager for UID 104...


and then, nothing ; hanged, frozen.... BUT, if I pool out RJ45 cable, then, gdm starts, and I can login... but that's it, because, I never reach the desktop environment ; black screen. even weirder : RJ45 cable pooled out, GDM available : I only can log in as root, and reach the desktop environment ! how nuts is that ?!
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
Wallsandfences
Guru
Guru


Joined: 29 Mar 2010
Posts: 378

PostPosted: Mon Feb 08, 2016 12:03 pm    Post subject: Reply with quote

Did you reinstall nividia-drivers?
Rüdiger
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9882
Location: almost Mile High in the USA

PostPosted: Tue Feb 16, 2016 9:43 pm    Post subject: Reply with quote

Also make sure you emerge with --newuse just in case...
Just double checking your kernel (gentoo-sources) is built with "systemd support"?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2305
Location: Adendorf, Germany

PostPosted: Wed Feb 17, 2016 9:21 am    Post subject: Reply with quote

It would be nice if systemd stopped restarting crashed services over and over again, huh? IIRC you can turn that behaviour off, but I do not remember where.
_________________
Edited 220,176 times by Yamakuzure
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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