Package: udev
Version: 0.056-2
Severity: minor

Hi Marco,

It's common practice to use "tmpfs", rather than "none" as the device
name.  With a current sid system:

# mount -t tmpfs
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /tmp type tmpfs (rw,size=4g)
none on /dev type tmpfs (rw,size=10M,mode=0755)

udev is using "none", whereas the other mounts use "tmpfs".  The same
principle also applies to other "pseudo-filesystems", for example devpts
and usbfs:

# mount -t devpts
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
# mount -t usbfs
usbfs on /proc/bus/usb type usbfs (rw)


This small patch should correct this:


--- /tmp/udev   2005-05-01 16:05:09.800776320 +0100
+++ /etc/init.d/udev    2005-05-01 16:06:30.000000000 +0100
@@ -31,7 +31,7 @@
   mount -n --bind /dev /etc/udev
 
   echo -n "Mounting a tmpfs over /dev..."
-  if ! mount -n -o size=$tmpfs_size,mode=0755 -t tmpfs none /dev; then
+  if ! mount -n -o size=$tmpfs_size,mode=0755 -t tmpfs tmpfs /dev; then
     echo " FAILED!"
     echo "FATAL: udev requires tmpfs support, not started."
     umount /etc/udev
@@ -155,7 +155,7 @@
         echo "WARNING: .udevdb already exists on the old $udev_root!"
       fi
     fi
-    mount -n -o size=$tmpfs_size,mode=0755 -t tmpfs none $udev_root
+    mount -n -o size=$tmpfs_size,mode=0755 -t tmpfs tmpfs $udev_root
     echo -n "Creating initial device nodes..."
     udevstart
     echo "done."


Regards,
Roger


-- Package-specific info:
-- /etc/udev/rules.d/:
/etc/udev/rules.d/:
total 0
lrwxrwxrwx  1 root root 20 2005-04-10 23:08 020_permissions.rules -> 
../permissions.rules
lrwxr-xr-x  1 root root 19 2005-03-18 00:58 cd-aliases.rules -> 
../cd-aliases.rules
lrwxr-xr-x  1 root root 14 2005-03-18 20:29 devfs.rules -> ../devfs.rules
lrwxr-xr-x  1 root root 13 2005-03-18 00:58 udev.rules -> ../udev.rules
lrwxr-xr-x  1 root root 12 2005-03-20 10:30 z_hal-plugdev.rules -> ../hal.rules

-- /sys/:
/sys/block/dm-0/dev
/sys/block/dm-1/dev
/sys/block/dm-2/dev
/sys/block/dm-3/dev
/sys/block/dm-4/dev
/sys/block/dm-5/dev
/sys/block/dm-6/dev
/sys/block/hda/dev
/sys/block/hda/hda1/dev
/sys/block/hda/hda2/dev
/sys/block/hda/hda3/dev
/sys/block/hda/hda4/dev
/sys/block/hda/hda5/dev
/sys/block/hda/hda6/dev
/sys/block/hda/hda7/dev
/sys/block/hdb/dev
/sys/block/uba/dev
/sys/block/uba/uba1/dev
/sys/block/uba/uba2/dev
/sys/class/adb/adb/dev
/sys/class/drm/card0/dev
/sys/class/graphics/fb0/dev
/sys/class/i2c-dev/i2c-0/dev
/sys/class/i2c-dev/i2c-1/dev
/sys/class/i2c-dev/i2c-2/dev
/sys/class/i2c-dev/i2c-3/dev
/sys/class/i2c-dev/i2c-4/dev
/sys/class/i2c-dev/i2c-5/dev
/sys/class/i2c-dev/i2c-6/dev
/sys/class/input/event0/dev
/sys/class/input/event1/dev
/sys/class/input/event2/dev
/sys/class/input/mice/dev
/sys/class/input/mouse0/dev
/sys/class/input/ts0/dev
/sys/class/misc/agpgart/dev
/sys/class/misc/apm_bios/dev
/sys/class/misc/device-mapper/dev
/sys/class/misc/nvram/dev
/sys/class/misc/pmu/dev
/sys/class/misc/psaux/dev
/sys/class/misc/rtc/dev
/sys/class/sound/timer/dev
/sys/class/usb/hiddev0/dev

-- Kernel configuration:
 isapnp_init not present.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.11.7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages udev depends on:
ii  hotplug                  0.0.20040329-22 Linux Hotplug Scripts
ii  initscripts              2.86.ds1-1      Standard scripts needed for bootin
ii  libc6                    2.3.2.ds1-21    GNU C Library: Shared libraries an
ii  makedev                  2.3.1-78        creates device files in /dev
ii  sed                      4.1.4-2         The GNU sed stream editor

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to