Summary: | sys-apps/openrc-0.20.0 rc segfaults during boot fails before root remount (ro) to (rw) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Derk W te Bokkel <derk.tebokkel> |
Component: | [OLD] Core system | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | CasperVector, che, conikost, derk.tebokkel, gentoo, realnc, tka, xaviermiller |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge--info |
This is the fix for this issue: https://github.com/openrc/openrc/commit/d4c7207 My system is bricked. Any info on how to restore it? I'm currently typing this in from my Windows 8.1 installation. I can get a root login, and I know how to remount "/" read-write: mount -o remount,rw /dev/sda / but I also need to somehow remount /dev. (In reply to Nikos Chantziaras from comment #2) > My system is bricked. > > Any info on how to restore it? I'm currently typing this in from my Windows > 8.1 installation. Since you have access to Windows 8.1, you should be able to create a live CD. Follow the directions in the handbook to mount your drives and chroot to your install (https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation). Then, you can mask openrc-20 (/etc/portage/package.mask), and re-emerge openrc to get your system back. Please try 0.20.1; this should be fixed in that version. (In reply to Drew McRae from comment #4) > (In reply to Nikos Chantziaras from comment #2) > > My system is bricked. > > > > Any info on how to restore it? I'm currently typing this in from my Windows > > 8.1 installation. > > Since you have access to Windows 8.1, you should be able to create a live > CD. Follow the directions in the handbook to mount your drives and chroot to > your install > (https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation). Then, you > can mask openrc-20 (/etc/portage/package.mask), and re-emerge openrc to get > your system back. I don't have a CD drive. I'll need to find a USB stick somewhere. Any chance of doing all that from the root login instead? Or alternatively, can someone upload a 64-bit binary of just "rc"? I can then copy it over the segfaulting one. OK, fixed it. To whoever is affected, here's how to fix it. Login as root. mount -o remount,rw /dev/your_root_partition / mount -t proc none /proc cd /root tar xf /path/to/portage/distfiles/openrc-0.20.tar.bz2 cd openrc-0.20 Then open src/rc/rc-misc.c in a text editor (vi, mcedit, whatever you have installed). Search for "if (!sys)" (should be in line 180.) Make this text: if (!sys) sys = detect_vm(); setenv("RC_SYS", sys, 1); look like this: if (!sys) sys = detect_vm(); if (sys) setenv("RC_SYS", sys, 1); Save and then: make cp src/rc/rc /sbin/rc rc sysinit rc boot rc default finally, emerge older openrc: emerge -1 =openrc-0.19.1 sync reboot Should work now. Do an emerge --sync to get openrc-0.20.1 which works. Hi! I don't see any segfault but the init process is frozen to "OpenRC 0.20 is starting up". I use a custom initramfs to mount / from a LUKS configuration. Is it related? (In reply to William Hubbs from comment #5) > Please try 0.20.1; this should be fixed in that version. This version is OK for me. can confirm newer version openrc-0.20.1 works for my system.. *** Bug 571962 has been marked as a duplicate of this bug. *** *** Bug 571988 has been marked as a duplicate of this bug. *** |
Created attachment 422858 [details] emerge--info upgrade to sys-apps/openrc-0.20.0 .. reboot fails with rc segfaults revert to openrc-0.19.1 via install/chroot boot media is necessary .. to recover then all is normal again ..