| Summary: | sys-fs/openrc-0.4.2 - /sbin/rc segfaults on empty /dev | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
| Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | jer, roy |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | /init script | ||
|
Description
Dennis Schridde
2009-01-30 19:54:37 UTC
Created attachment 180313 [details]
/init script
PS: I just tested: Even when /dev is not unmounted before switching root, I assume that the /dev directory is not accessible by /sbin/rc after switching root. So openrc is probably always left with an entirely empty /dev when using my script. I now wonder why it is not populated using udev, or similar. What you have is a shell-script part of an initramfs. It does switch root at the end. So /dev will be empty in this root, as you do not copy over /dev from the tmpfs. So your final system should call any dev manager (e.g. udev or mdev) or will have no device nodes. So you should make sure you have udev added to sysfs runlevel. About that segfault you should create a backtrace, but no idea how to easily do it. But I guess you should at least compile openrc with debug information. Maybe someone can at least tell you how to find out the source line from the ip value. Or if $root is rw, maybe you can force the kernel to write a core-dump. I'll need a backtrace to fix this or just create a qemu vhost ... |