From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Date: Wed, 14 Jul 2004 04:01:47 +0000 Subject: Re: [PATCH] Enable all events for initramfs Message-Id: <40F4B02B.8080002@ums.usu.ru> List-Id: References: <40F3C48F.30905@suse.de> In-Reply-To: <40F3C48F.30905@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hannes Reinecke wrote: > Hi all, > > currently most driver events are not sent out when using initramfs as > driver_init() (which triggers the events) is called before init_workqueues. > > This patch rearranges the init calls so that the hotplug event queue is > enabled prior to calling driver_init(), hence we're getting all hotplug > events again. > > Patch is relative to 2.6.7-mm6, but should apply to 2.6.8-rc1 also. > > Please apply. This is probably a very good news. I see the following application of it. Since no hotplug events are dropped any more, the initramfs could save their type and environment in files on a ramfs, and then remount that ramfs to some location accessible by the main system. The information accumulated in these files can be used for re-synthesis of events not handled because e.g. /usr was not mounted. This means that we can drop the udevstart program and *.rc files that come with the hotplug package and replace them by playback of such recorded events. This looks much cleaner, since right now the reconstruction is imperfect. I will try to implement this approach (i.e, create initramfs and modify the hotplug and udev packages) during this week on a copy of Linux From Scratch 20040702, and report the results here. -- Alexander E. Patrakov ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel