Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20325 - Devfsd won't start if using a separate /usr partition
Summary: Devfsd won't start if using a separate /usr partition
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-02 08:30 UTC by sleepy
Modified: 2003-05-21 21:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sleepy 2003-05-02 08:30:06 UTC
When devfsd starts it looks for a file in /usr (/usr/lib/devfsd-so.se) but
can't locate it because the /usr partition isn't currently available.


Reproducible: Always
Steps to Reproduce:
1. Create a new partition
2. Copy the contents of current /usr to the new partition
3. Edit fstab to mount this partition ...
4. Reboot system

Actual Results:  
starting devfsd .......... [!!]

Expected Results:  
starting devfsd .......... [ok]

Somewhere in the ebuild process the dest dir of lib file for devfs as bee 
changed from /lib to /usr/lib.
Comment 1 Georg Müller 2003-05-02 14:38:56 UTC
Hm, I have my /usr-directory on a different partition and everythink works fine...

Can you tell more about your system?
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-04 03:01:09 UTC
Err, please supply a ldd /sbin/devfsd:

----------------------------------------------------------------
# ldd /sbin/devfsd 
	libdl.so.2 => /lib/libdl.so.2 (0x43ff5000)
	libc.so.6 => /lib/libc.so.6 (0x43ecc000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x43eb5000)
Comment 3 sleepy 2003-05-05 07:58:02 UTC
Sorry for the delay ...

Currently using devfsd version 1.3.25
Result of ldd /sbin/devfsd 

	libdl.so.2 => /lib/libdl.so.2 (0x4001b000)
	libc.so.6 => /lib/libc.so.6 (0x4001f000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0x40000000)

I found a file "selinux-small" in /etc/devfs.d included in devfsd.conf by a  statement.
When i remove the file, everything goes ok.

Contents of selinux-small :

REGISTER ^nb[^/]+$	CFUNCTION /usr/lib/devfsd-se.so set_sid $devname system_u:object_r:fixed_disk_device_t
REGISTER [0-9]/cd$	CFUNCTION /usr/lib/devfsd-se.so set_sid $devname system_u:object_r:removable_device_t
REGISTER ^initctl	CFUNCTION /usr/lib/devfsd-se.so set_sid $devname system_u:object_r:initctl_t
REGISTER ^gpmctl	CFUNCTION /usr/lib/devfsd-se.so set_sid $devname system_u:object_r:gpmctl_t
REGISTER ^dri		CFUNCTION /usr/lib/devfsd-se.so set_sid $devname system_u:object_r:dri_device_t
REGISTER ^sound/.*	CFUNCTION /usr/lib/devfsd-se.so set_sid $devname system_u:object_r:sound_device_t
REGISTER ^pts/.*	IGNORE



I'm quite new to gentoo ... so I don't know where it comme from.



Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-05 16:09:21 UTC
Selinux stuff.  Method, you guys will have to move that lib to /lib ...
Comment 5 Joshua Brindle (RETIRED) gentoo-dev 2003-05-05 16:45:05 UTC
did you enable selinux use var? 
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-05 17:19:44 UTC
I think that is fairly a non issue.  Issue is that having devfsd-se.so in
/usr/lib borks with /usr on a diff partition.  Just get it to install to /lib
(and remember to fix the devfs.d file), and all should be well.
Comment 7 Chris PeBenito (RETIRED) gentoo-dev 2003-05-05 22:07:46 UTC
Yeah, this is a problem with where I put the selinux-small devfsd module (devfsd-se.so).  I'll take this one off your hands Az.
Comment 8 Chris PeBenito (RETIRED) gentoo-dev 2003-05-06 10:05:36 UTC
I just added selinux-small-2003011510-r4 to cvs as KEYWORDS="~x86 ~ppc ~alpha ~sparc", and it should hit rsync soon.  Please test and report your results.
Comment 9 Chris PeBenito (RETIRED) gentoo-dev 2003-05-21 21:19:04 UTC
selinux-small-2003011510-r4 is marked stable.  the devfsd module is now in /lib/devfsd, which is on the root partition.