Package: udev
Version: 0.100-2.2
Severity: minor
Tags: patch
Hi,
the attached patch changes the udev initramfs script to also support the
no_static_dev config option which was introduced in #387051. Without it,
the /dev/.static/dev dir will be created during boot even if the config
option is set (if a initramfs image built using initramfs-tools is
used).
--
David Härdeman
diff -ur ./udev-0.100.orig/extra/initramfs.bottom
./udev-0.100/extra/initramfs.bottom
--- ./udev-0.100.orig/extra/initramfs.bottom 2006-11-07 18:06:39.000000000
+0100
+++ ./udev-0.100/extra/initramfs.bottom 2006-11-07 18:10:24.000000000 +0100
@@ -20,11 +20,17 @@
# ignore any failed event because the init script will trigger again all events
nuke /dev/.udev/queue/
-# Move the real filesystem's /dev to beneath our tmpfs, then move it all
-# to the real filesystem
-mkdir -m 0700 -p /dev/.static/
-mkdir /dev/.static/dev/
-mount -n -o bind $rootmnt/dev /dev/.static/dev
+# Optionally move the real filesystem's /dev to beneath our tmpfs
+if [ -e /etc/udev/udev.conf ]; then
+ . /etc/udev/udev.conf
+fi
+if [ -z "$no_static_dev" ]; then
+ mkdir -m 0700 -p /dev/.static/
+ mkdir /dev/.static/dev/
+ mount -n -o bind $rootmnt/dev /dev/.static/dev
+fi
+
+# Now move it all to the real filesystem
mount -n -o move /dev $rootmnt/dev
# create a temporary symlink to the final /dev for other initramfs scripts