[Lunar-commits] CVS: moonbase/filesys/e2fsprogs/init.d mount, 1.9, 1.10

Jaime Buffery nestu at lunar-linux.org
Wed Mar 23 19:54:02 UTC 2005


Update of /var/cvs/lunar/moonbase/filesys/e2fsprogs/init.d
In directory espresso.foo-projects.org:/tmp/cvs-serv4064

Modified Files:
	mount 
Log Message:
* Applying Jasper's patch (slightly modified placement before udevstart), so that
udevsend takes /sbin/hotplug's place.
* Now /dev/pts is automounted as well.


Index: mount
===================================================================
RCS file: /var/cvs/lunar/moonbase/filesys/e2fsprogs/init.d/mount,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- mount	2 Mar 2005 12:47:57 -0000	1.9
+++ mount	23 Mar 2005 19:54:00 -0000	1.10
@@ -142,15 +142,23 @@
       mount -t ramfs none /dev
       chkresult
 
+      echo     -n " * Setting /sbin/udevsend to manage hotplug events :"
+      echo "/sbin/udevsend" > /proc/sys/kernel/hotplug
+      chkresult
+
       echo     -n " * Creating udev device nodes on /dev :"
       /sbin/udevstart
       chkresult
 
-      echo     -n " * Creating missing dirs on /dev :"     
+      echo     -n " * Creating extra /dev/pts /dev/shm dirs:"     
       mkdir /dev/{pts,shm}
       chkresult
+
+      echo     -n " * Mounting devpts on /dev/pts :"
+      mount -t devpts devpts /dev/pts
+      chkresult      
   fi
-  
+
   if  [ ! -e /fastboot ] ; then 
       if [ -e /forcefsck ] ; then
 	  FORCE="-f"
@@ -199,11 +207,12 @@
   while  read  DEVICE MOUNTPOINT FSTYPE REST;  do
   
       # these have been mounted previously, so don't remount them
-      test "$MOUNTPOINT" = "/"     && continue
-      test "$MOUNTPOINT" = "/proc" && continue
-      test "$MOUNTPOINT" = "/sys"  && continue
-      test "$MOUNTPOINT" = "/dev"  && continue
-      
+      test "$MOUNTPOINT" = "/"         && continue
+      test "$MOUNTPOINT" = "/proc"     && continue
+      test "$MOUNTPOINT" = "/sys"      && continue
+      test "$MOUNTPOINT" = "/dev"      && continue
+      test "$MOUNTPOINT" = "/dev/pts"  && continue      
+
      # we don't do networked fs's yet!
       case "$FSTYPE" in
  	  nfs|smbfs) continue ;;



More information about the Lunar-commits mailing list