kvh009 n00b
Joined: 19 Apr 2002 Posts: 19 Location: Indianapolis, IN
|
Posted: Fri Oct 25, 2002 4:01 pm Post subject: Not using devfsd |
|
|
Warning ::: Not starting devfsd may make your system unbootable and you may not be able to log-in.
At a minimum /etc/fstab and /etc/inittab need to be edited before removing devfsd.
Reason ::: (With the standard /etc/devfsd.conf)
With devfsd : ls /dev | wc -l = 119
Without devfsd : ls /dev | wc -l = 34
Your milage may vary. It works on my system....
I decided to use a file in /etc/conf.d to simplify things.
Code: |
(kvh)-(10:44)-(~)> cat /etc/conf.d/devfsd
DEVFSD="no"
#DEVFSD="yes"
|
Here's a diff -u for /sbin/rc
Code: |
--- rc-orig 2002-10-25 10:27:55.000000000 -0500
+++ rc 2002-10-25 10:28:01.000000000 -0500
@@ -8,6 +8,12 @@
source /sbin/functions.sh
umask 022
+if [ -e /etc/conf.d/devfsd ]; then
+ source /etc/conf.d/devfsd
+else
+ DEVFSD="no"
+fi
+
try() {
local retval=0
# this works fine in test, but real life booting, fails for mounting /proc
@@ -98,9 +104,13 @@
if [ "${devfs}" = "yes" -a -e /dev/.devfsd -a \
"${mymounts/devfs//}" != "${mymounts}" ]
then
- ebegin "Starting devfsd"
- /sbin/devfsd /dev &>/dev/null
- eend $?
+ if [ $DEVFSD != "no" ]; then
+ ebegin "Starting devfsd"
+ /sbin/devfsd /dev &>/dev/null
+ eend $?
+ else
+ echo "NOT Starting devfsd"
+ fi
fi
if [ ! -d ${svcdir} ]
@@ -362,7 +372,9 @@
if [ -z "$(ps -A | egrep 'devfsd')" -a \
-n "$(cat /proc/mounts | egrep '/dev devfs')" ]
then
- /sbin/devfsd /dev &>/dev/null
+ if [ $DEVFSD != "no" ]; then
+ /sbin/devfsd /dev &>/dev/null
+ fi
fi
# runlevel end, so clear stale fail list
|
Code: |
(kvh)-(10:59)-(~)> ll /dev/.devfsd
crw------- 1 root root 8, 0 Dec 31 1969 /dev/.devfsd
|
I'm not sure if this is still needed. Doesn't seem to do any harm.
Comments? |
|