Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemctl - Failed to connect to bus: No such file or dir
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
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 214

PostPosted: Tue May 16, 2017 4:43 pm    Post subject: systemctl - Failed to connect to bus: No such file or dir Reply with quote

Just finished my gentoo install but no network and when trying to enable systemd-networkd it states this error message. I have no network, just loopback address. Don't know how to change it from systemd to openrc now, compiled genkernel with additional nvme boot support, but gentoo boots fine. But, no net, init is "init" and not systemd. I can enable services but not start them. But enabling just seem to create a symlink. I followed the handbook and the section of systemd, but must have forgotten or missed something. Is it only a reinstall that will fix my issues in gentoo?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Tue May 16, 2017 5:02 pm    Post subject: Reply with quote

run ifconfig -a see if the kernel finds an interface
run ifconfig to see if the kernel enables a driver and brings the interface up
run lspci -k to see if pci(e) attached NIC's exist and have drivers
run lsusb to see if usb attached NIC's are detected
if usb nic run lshw | grep -i driver look to see the appropriate driver
does grep -i systemd /usr/src/linux/.config show CONFIG_GENTOO_LINUX_INIT_SYSTEMD=y
_________________
Defund the FCC.
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 214

PostPosted: Tue May 16, 2017 5:11 pm    Post subject: Reply with quote

DONAHUE wrote:
run ifconfig -a see if the kernel finds an interface
run ifconfig to see if the kernel enables a driver and brings the interface up
run lspci -k to see if pci(e) attached NIC's exist and have drivers
run lsusb to see if usb attached NIC's are detected
if usb nic run lshw | grep -i driver look to see the appropriate driver
does grep -i systemd /usr/src/linux/.config show CONFIG_GENTOO_LINUX_INIT_SYSTEMD=y


Thanks for quick reply.

Output of ifconfig -a and ifconfig is identical, no adapter else than local loopback
lspci -k shows my intel nic ethernet with kernel modules: e1000e
And, indeed. Config gentoo linux init systemd states =y
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Tue May 16, 2017 5:46 pm    Post subject: Reply with quote

have you emerged linux-firmware or iwl'some designator apprpriate to your NIC '-ucode to provide firmware for your NIC?
dmesg | grep -i e1000e or dmesg | grep -i firmware may provide hints
grep -i e1000e /usr/src/linux/.config hopefully yields CONFIG_E1000E=m and CONFIG_E1000E_HWTS=y
_________________
Defund the FCC.
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 214

PostPosted: Wed May 17, 2017 5:16 am    Post subject: Reply with quote

No. I missed to emerge a lot. Beeing on a cellphone reding the handbook (:
I just reinstalled the whole thing. This time without systed. I can switch later if i want/need

Thanks anyhow
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 487
Location: Estonia

PostPosted: Thu Jun 01, 2017 9:46 pm    Post subject: Reply with quote

I think you simply forgot to switch init to systemd, as you seem to have said so yourself in the original post. If systemd isn't running, it can't do such controlling stuff with systemd-networkd. init=/usr/lib/systemd/systemd or some such to kernel command line and it should have worked. Something to remember for if you convert later.
_________________
GNOME team lead; GStreamer; MIPS/ARM64
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 214

PostPosted: Fri Jun 02, 2017 6:21 am    Post subject: Reply with quote

Leio wrote:
I think you simply forgot to switch init to systemd, as you seem to have said so yourself in the original post. If systemd isn't running, it can't do such controlling stuff with systemd-networkd. init=/usr/lib/systemd/systemd or some such to kernel command line and it should have worked. Something to remember for if you convert later.


Thank you. I will convert to systemd some time, perhaps this summer. Already beeing somehow more comfortable in Gentoo, and even thou i like openrc i like to learn stuff, to be able to help others eventually struggling. Thats my main goal.
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