Package: udev
Version: 0.114-2

unlike the /etc/init.d/udev script the udev script for initramfs:

/usr/share/initramfs-tools/scripts/init-bottom/udev

fails to move /dev/.static/dev so that it is accessible from the
new root filesystem

this patch fixes the issue:

--- /usr/share/initramfs-tools/scripts/init-bottom/udev 2007-08-06 
00:12:26.000000000 -0400
+++ /home/jesseh/code/debian_live/initrd/scripts/init-bottom/udev       
2007-09-27 15:24:13.283101332 -0400
@@ -25,14 +25,18 @@
     . /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
+    mount -n --bind $rootmnt/dev $rootmnt/lib/udev/devices
 fi
 
 # Now move it all to the real filesystem
 mount -n -o move /dev $rootmnt/dev
 
+if [ -z "$no_static_dev" ]; then
+    mkdir -m 0700 -p ${rootmnt}/dev/.static/
+    mkdir ${rootmnt}/dev/.static/dev/
+    mount -n --move  ${rootmnt}/dev/.static/dev
+fi
+
 # create a temporary symlink to the final /dev for other initramfs scripts
 nuke /dev
 ln -s $rootmnt/dev /dev


p.s. why is the .static directory created with 700 permissions?

thanks,

Jesse



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

Reply via email to