On Вск, 2002-01-13 at 16:37, Alexander Skwar wrote:
> 
> [root@teich kernel]# dmesg | grep -i ^dev
> devfs: v1.7 (20011216) Richard Gooch ([EMAIL PROTECTED])
> devfs: boot_options: 0x1
> devfs: devfs_mk_dir(sound): using old entry in dir: effea5c0 ""
> devfs: devfs_mk_dir(snd): using old entry in dir: effea5c0 ""
> devfs: devfs_register(cd): could not append to parent, err: -17
> devfs: devfs_register(cd): could not append to parent, err: -17
> devfs: devfs_register(cd): could not append to parent, err: -17
> devfs: devfs_register(cd): could not append to parent, err: -17
> 


17 == EEXIST

That is the most probable reason. New devfs is much more strict about
overwriting existing entries.

You have current version of all packages, so please apply the attached
patch and tell if it helps. Apply patch, removed the whole contents of
/lib/dev-state and reboot. After reboot recreate custom links in /dev
(like /dev/modem) if you have any. The patch is for
/etc/rc.d/rc.sysinit, /etc/devfsd.conf, /etc/modules.devfsd. The most
important things it does

- enable RESTORE directive in devfsd
- removes copying of /lib/dev-state onto /dev in rc.sysinit
- removes calls to /sbin/pam_console_apply and instead makes use of
shared library

This makes it possible to still do persistent ln -s foo /dev/bar but
avoids errors you have. Other changes are just cosmetic (make sure
console lock files are removed so we apply correct permissions and add a
couple of devices to modules.devfsd).

This assumes at leasr kernel 2.4.17 and devfsd-1.3.20; with these patch
we need dependencies:

kernel requires devfsd >= 1.3.20
initscript incompatible with devfsd < 1.3.20-Xmdk (whatever build it is)
devfsd incompatible with initscripts < x.y.z (whatever version the patch
appears in).

> That's enough from dmesg?  Heck, I'll attach the complete dmesg output.
> 

I hope. Please let me know if it helps.

-andrej

--- etc/devfsd.conf	Fri Dec 14 16:39:01 2001
+++ /etc/devfsd.conf	Thu Jan 10 22:41:30 2002
@@ -49,7 +49,7 @@
 #CREATE		.*		COPY	$devpath /dev-state/$devname
 #CHANGE		.*		COPY	$devpath /dev-state/$devname
 #DELETE		.*		CFUNCTION GLOBAL unlink /dev-state/$devname
-#RESTORE		/dev-state
+RESTORE		/lib/dev-state
 REGISTER	^pt[sy]/.*	IGNORE
 CHANGE		^pt[sy]/.*	IGNORE
 CREATE		^pt[sy]/.*	IGNORE
@@ -74,8 +74,6 @@
 
 # ALSA stuff
 LOOKUP 		snd 		MODLOAD ACTION snd
-REGISTER 	sound/.*	EXECUTE /sbin/pam_console_apply
-REGISTER 	snd/.*		EXECUTE /sbin/pam_console_apply
 
 # Manage USB mouse
 REGISTER	^input/mouse0$	CFUNCTION GLOBAL symlink input/mouse0 usbmouse
@@ -101,4 +99,5 @@
 REGISTER	\(usb/\)\?\(lp\|printer\).*	EXECUTE /etc/dynamic/scripts/lp.script add $devpath
 UNREGISTER	\(usb/\)\?\(lp\|printer\).*	EXECUTE /etc/dynamic/scripts/lp.script del $devpath
 
+REGISTER 	.*	CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $devpath
 # devfsd.conf ends here
--- etc/modules.devfs	Fri Dec 14 16:39:01 2001
+++ /etc/modules.devfs	Sat Jan 12 12:38:49 2002
@@ -46,6 +46,8 @@
 # SCSI HDDs
 probeall  /dev/sd		scsi_hostadapter sd_mod
 alias     /dev/sd*		/dev/sd
+alias     /dev/scsi/*/part*		/dev/sd
+alias     /dev/scsi/*/disc		/dev/sd
 
 # SCSI CD-ROMs
 probeall  /dev/scd		scsi_hostadapter sr_mod
@@ -111,6 +113,9 @@
 # Video capture devices
 alias     /dev/video*		/dev/v4l
 alias     /dev/vbi*		/dev/v4l
+
+alias     /dev/ircomm           ircomm-tty
+alias     /dev/ircomm*          /dev/ircomm
 
 # Pull in the configuration file. Do this last because modprobe(8) processes in
 # per^H^H^Hreverse order and the sysadmin may want to over-ride what is in the
--- etc/rc.d/rc.sysinit	Thu Dec 27 17:14:58 2001
+++ /etc/rc.d/rc.sysinit	Thu Jan 10 23:54:39 2002
@@ -100,9 +100,6 @@
   if [ -x /sbin/devfsd ]; then
     # copy /lib/dev-state before starting devfsd to avoid accidentally
     # triggering devfsd actions (like module loading)
-    if [ -d /lib/dev-state ]; then
-	cp -af /lib/dev-state/* /dev > /dev/null 2>&1
-    fi
     action "Running DevFs deamon" devfsd /dev
     if [ -f /etc/sysconfig/mouse ];then
       . /etc/sysconfig/mouse
@@ -906,6 +903,7 @@
 rm -f /var/lib/rpm/__db*
 
 # Reset pam_console permissions
+rm -rf /var/lock/console.lock /var/lock/console/*
 [ -x /sbin/pam_console_apply ] && /sbin/pam_console_apply -r
 
 {

Reply via email to