public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* fastboot/async and initramfs: How am I supposed to know when devices are finished initializing?
@ 2009-03-29 16:02 Thomas Bächler
  2009-03-29 16:11 ` Arjan van de Ven
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Bächler @ 2009-03-29 16:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: Thomas Bächler

Okay, I have this problem in 2.6.29 with the "fastboot" option and in 
today's linux-2.6.git.

In initramfs, we run the following commands:
     /sbin/udevd --daemon
     /sbin/udevadm trigger
     /sbin/udevadm settle
Among other things, this loads the ata_piix on my machine. On older 
kernels I could assume that after these commands, /dev/sda* existed and 
I could immediately access them (in my case, I run cryptsetup on 
/dev/sda6). But now, the devices don't exist here, but are only created 
a second or so later. As a result, the initramfs script has already 
bailed out as it couldn't find /dev/sda6 and assumed that the hard drive 
didn't exist.

So my question is, if udevadm settle doesn't wait for the devices 
anymore, how am I supposed to know when the devices have been created? 
If there is no way to know, I would consider this a regression, as it is 
no longer possible to cleanly write initramfs scripts.

Thanks for you replies
Thomas Bächler
Arch Linux Developer

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-03-30 20:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-29 16:02 fastboot/async and initramfs: How am I supposed to know when devices are finished initializing? Thomas Bächler
2009-03-29 16:11 ` Arjan van de Ven
2009-03-29 16:39   ` Thomas Bächler
2009-03-29 17:36     ` Kay Sievers
2009-03-29 17:52       ` Thomas Bächler
2009-03-29 18:06         ` Kay Sievers
2009-03-30 18:23           ` Dan Williams
2009-03-30 18:42             ` Kay Sievers
2009-03-30 19:08               ` Dan Williams
2009-03-29 20:03         ` fastboot/async and initramfs: How am I supposed to know when?devices " Alexander Clouter
2009-03-30 20:20           ` Thomas Bächler
     [not found]   ` <49CFA2CC.9080506@archlinux.org>
     [not found]     ` <20090329094220.4e80c267@infradead.org>
2009-03-29 17:23       ` fastboot/async and initramfs: How am I supposed to know when devices " Thomas Bächler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox