Hello,
CONFIG_DEVTMPFS_MOUNT=y
does not fix our problems here, we need the changes to /etc/init.d/udev I
mailed earlier.
The reason is that we start a complete debian system as initramfs. In this
case CONFIG_DEVTMPFS_MOUNT=y does nothing. As there is no devtmpfs mounted the
bugs in /etc/init.d/udev are triggered: it tries to mount a tmpfs (instead of
devtmpfs) and even this fails because it calls mount erroneously.
Probably debian systems running custom kernels built without
CONFIG_DEVTMPFS_MOUNT=y will start, too, if /etc/init.d/udev is fixed.
Regards,
--
Wolfgang Walter
Studentenwerk München
Anstalt des öffentlichen Rechts
--- udev.orig 2013-09-16 13:41:20.750160567 +0200
+++ udev 2013-09-15 02:48:03.699703206 +0200
@@ -22,11 +22,11 @@
# mount a tmpfs over /dev, if somebody did not already do it
mount_tmpfs() {
if grep -E -q "^[^[:space:]]+ /dev (dev)?tmpfs" /proc/mounts; then
- mount -n -o remount,${dev_mount_options} -t tmpfs tmpfs /dev
+ mount -n -o remount,${dev_mount_options} -t devtmpfs devtmpfs /dev
return
fi
- if ! mount -n -o $dev_mount_options -t tmpfs tmpfs /dev; then
+ if ! mount -n -o $dev_mount_options -t devtmpfs devtmpfs /dev; then
log_failure_msg "udev requires tmpfs support, not started"
log_end_msg 1
fi
@@ -144,6 +144,11 @@
# new /dev has been mounted and udevadm trigger has been run there will be
# no /dev/null. This also means that you cannot use the "&" shell command.
+dev_mount_options='mode=0755'
+if [ "$tmpfs_size" ]; then
+ dev_mount_options="size=${tmpfs_size},${dev_mount_options}"
+fi
+
case "$1" in
start)
if init_is_upstart 2>/dev/null; then