[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#339093: initramfs-tools: kill udevd as late as possible



Package: initramfs-tools
Severity: minor
Tags: patch

Currently /usr/share/initramfs-tools/init kills udev after init-premount scripts have executed. However, more devices might become available as a result of running the local scripts.

I therefore suggest to kill udev as late as possible (right before chaining to the real root filesystem). If any script has a problem with udev running it can easilly call "killall udevd" itself.

Re,
David
Index: initramfs-tools-0.38/init
===================================================================
--- initramfs-tools-0.38.orig/init	2005-10-21 18:37:46.000000000 +0200
+++ initramfs-tools-0.38/init	2005-11-14 22:53:56.000000000 +0100
@@ -91,8 +91,6 @@
 run_scripts /scripts/init-premount
 log_end_msg
 
-killall udevd
-
 log_begin_msg "Mounting root file system"
 mountroot
 log_end_msg
@@ -103,6 +101,7 @@
 
 # Move our /dev to the real filesystem.  Do the setup that udev otherwise
 # would.
+killall udevd
 mkdir -p /dev/.static/dev
 chmod 700 /dev/.static/
 mount -n -o bind ${rootmnt}/dev /dev/.static/dev

Reply to: