Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd "Failed to get D-Bus connection: Unknown error -1"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
waterloo2005
Apprentice
Apprentice


Joined: 26 Aug 2008
Posts: 271

PostPosted: Thu Jan 08, 2015 2:11 am    Post subject: systemd "Failed to get D-Bus connection: Unknown error Reply with quote

I install gentoo amd64 with systemd according to https://wiki.gentoo.org/wiki/Systemd/Installing_Gnome3_from_scratch .

When I reboot, I run `systemdctl`, it gives :
`Failed to get D-Bus connection: Unknown error -1`.

What is the matter ?
Thanks
_________________
i5-2450M, gnome, amd64
R,Mathematica,Emacs
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Thu Jan 08, 2015 4:35 am    Post subject: Reply with quote

Did you change your init to systemd? Regenerated (grub2) your grub.cfg or edited your bootloader to run systemd as your init program?

Might be some more information on http://wiki.gentoo.org/wiki/Systemd .
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jan 08, 2015 6:11 am    Post subject: Reply with quote

Code:
systemctl list-unit-files | grep -i dbus
or
Code:
systemctl status
dbus stuff enabled active running?
if not:
Code:
emerge -s dbus;emerge --info | grep dbus;systemctl | grep -i dbus
Output of First command- sys-apps/dbus, dev-util/gdbus-codegen, dev-python/dbus-python should be present
Output of Second- Use flag dbus should be present
_________________
Defund the FCC.
Back to top
View user's profile Send private message
waterloo2005
Apprentice
Apprentice


Joined: 26 Aug 2008
Posts: 271

PostPosted: Thu Jan 08, 2015 6:20 am    Post subject: Reply with quote

eccerr0r wrote:
Did you change your init to systemd? Regenerated (grub2) your grub.cfg or edited your bootloader to run systemd as your init program?

Might be some more information on http://wiki.gentoo.org/wiki/Systemd .


I do not change init , just installing Gnome3 from scratch according this page https://wiki.gentoo.org/wiki/Systemd/Installing_Gnome3_from_scratch . According that page , I use `GRUB_CMDLINE_LINUX="rootfstype=ext4 real_init=/usr/lib/systemd/systemd" `, at that time I meet the problem.

But per the page https://wiki.gentoo.org/wiki/Systemd , I use ` GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd" ` . Now the problem disappeared.

What is the difference of `real_init` and `init` here ?

Thanks
_________________
i5-2450M, gnome, amd64
R,Mathematica,Emacs
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Thu Jan 08, 2015 11:59 am    Post subject: Reply with quote

I was always wondering about that too.

If you're using an initramfs which has its own "init" the initramfs also needs to transfer control. But initramfs has to know what you want to transfer to. If you don't tell it, it has to assume /bin/init, which will trigger OpenRC, and systemd won't run.

If you were to tell it init=systemd from the get go, it will fail because the initramfs does not have systemd on it.

The recent initramfs will pull in a new option, real_init, which will transfer control to this real_init when it's finished doing its business.

BUT if you don't have initramfs, real_init is simply a garbage option and gets ignored. The kernel will pull in /bin/init and systemd never gets run.

So I think the documentation needs to be more clear... Glad it's working now.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1374

PostPosted: Thu Jan 08, 2015 1:24 pm    Post subject: Reply with quote

genkernel-next-59/doc/genkernel.8.txt:
Quote:
*init*=<...>::
Override location of init script, default is "/sbin/init".

*real_init*=<...>::
Legacy kernel parameter from kernel-2.4 initrd.
Does the same as *init*=, which should be used in its place.
Also dracut does not need real_init.
_________________
fun2gen2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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