Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not using devfsd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
kvh009
n00b
n00b


Joined: 19 Apr 2002
Posts: 19
Location: Indianapolis, IN

PostPosted: Fri Oct 25, 2002 4:01 pm    Post subject: Not using devfsd Reply with quote

:!::!: 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

:wink: Your milage may vary. It works on my system.... :smile:

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum