Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
INIT: cannot execute "sbin/openrc"
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
GentooUserfromthesouth
n00b
n00b


Joined: 27 Mar 2024
Posts: 4

PostPosted: Wed Mar 27, 2024 12:24 am    Post subject: INIT: cannot execute "sbin/openrc" Reply with quote

Hi guys, I need help. After changing to profile 23 from 17.1, I executed the last step of emerging world I had a terrible surprise after booting tonight
Code:

INIT: cannot execute "sbin/openrc"

I chrooted and all my files are there, I tried rebuilding system, which ended without error, but the system gives the same error. Any help would be welcome.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Wed Mar 27, 2024 12:42 am    Post subject: Reply with quote

Haven't switched yet, but in order to get help plz tell us where you started from & where you went.
Using initramfs?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
GentooUserfromthesouth
n00b
n00b


Joined: 27 Mar 2024
Posts: 4

PostPosted: Wed Mar 27, 2024 12:56 am    Post subject: Reply with quote

Hi,
I started with a plasma desktop profile, 17.1
After the last sync, I decided to migrate to profile 23. Everything went smoothly, apparently, as I don't remember seeing any errors.
The problem arose after shutdown and powering up. The system is initramfs and openrc. I chrooted and re-merged services and @system but the error persists. No exotic hardware or setup.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1661

PostPosted: Wed Mar 27, 2024 1:00 am    Post subject: Reply with quote

If you started with default/linux/amd64/17.1/desktop/plasma profile, hopefully you chose the default/linux/amd64/23.0/split-usr/desktop/plasma profile after. As this is what is required.

default/linux/amd64/23.0/desktop/plasma needs a tool to move things around and work properly. For OpenRC, this is an optional step which must be done later if desired.
Back to top
View user's profile Send private message
GentooUserfromthesouth
n00b
n00b


Joined: 27 Mar 2024
Posts: 4

PostPosted: Wed Mar 27, 2024 1:11 am    Post subject: Reply with quote

Correct, I double checked the target profile, it's split plasma.
What step is that? I don't remember seeing it on the profile migration page.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1661

PostPosted: Wed Mar 27, 2024 1:28 am    Post subject: Reply with quote

So I was just checking the correct profile. Perhaps your /etc/inittab has a bad value. "sbin/openrc" is missing a leading /
Back to top
View user's profile Send private message
GentooUserfromthesouth
n00b
n00b


Joined: 27 Mar 2024
Posts: 4

PostPosted: Wed Mar 27, 2024 1:57 am    Post subject: Reply with quote

The relevant line shows
Code:

si::sysinit:/sbin/openrc sysinit

All have the leading /

What I don't see doing ls -la in /sbin is openrc.
Back to top
View user's profile Send private message
Phoenix591
Guru
Guru


Joined: 17 Sep 2007
Posts: 487

PostPosted: Wed Mar 27, 2024 10:48 am    Post subject: Reply with quote

rebuild openrc and you should be fine, or at least a little less broken. what I'm guessing happened is you used --getbinpkg which pulled in a merged-usr binary for openrc which put the it in a different spot, /usr/bin I believe.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21637

PostPosted: Wed Mar 27, 2024 2:38 pm    Post subject: Reply with quote

If you still need help, please show the output of equery files sys-apps/openrc ; namei -l /sbin/openrc /usr/bin/openrc.
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