Re: Wait for console to become available, v3.2

2009-04-26 Thread Jamie Lokier
Kay Sievers wrote: > On Mon, Apr 27, 2009 at 01:12, Jamie Lokier wrote: > > Kay Sievers wrote: > >> > _If_ the system doesn't wait for all block devices present at boot to > >> > be enumerated before the boot script, then when the script looks in > >> > that directory for a specific UUID, it would

Re: Wait for console to become available, v3.2

2009-04-26 Thread Kay Sievers
On Mon, Apr 27, 2009 at 01:12, Jamie Lokier wrote: > Kay Sievers wrote: >> > _If_ the system doesn't wait for all block devices present at boot to >> > be enumerated before the boot script, then when the script looks in >> > that directory for a specific UUID, it would be good to wait until >> > "

Re: Wait for console to become available, v3.2

2009-04-26 Thread Jamie Lokier
Kay Sievers wrote: > > _If_ the system doesn't wait for all block devices present at boot to > > be enumerated before the boot script, then when the script looks in > > that directory for a specific UUID, it would be good to wait until > > "has everything present at boot been enumerated?" says yes.

Re: Wait for console to become available, v3.2

2009-04-26 Thread Kay Sievers
On Sun, Apr 26, 2009 at 23:37, Jamie Lokier wrote: > Alan Stern wrote: >> As for searching for a particular UUID, I believe recent changes to >> sysfs/udev should improve the situation.  There will be a "by_UUID" >> directory somewhere, containing a bunch of symbolic links whose names >> are the U

Re: Wait for console to become available, v3.2

2009-04-26 Thread Jamie Lokier
Alan Stern wrote: > On Sun, 26 Apr 2009, Jamie Lokier wrote: > > > > Are you suggesting this new interface be exported to userspace somehow? > > > > Not directly. Only in the same way that open("/dev/console") delays > > until there's a console, so reading the keyboard can delay until we > > kno

Re: Wait for console to become available, v3.2

2009-04-26 Thread Alan Stern
On Sun, 26 Apr 2009, Jamie Lokier wrote: > > Are you suggesting this new interface be exported to userspace somehow? > > Not directly. Only in the same way that open("/dev/console") delays > until there's a console, so reading the keyboard can delay until we > know if we had a keyboard plugged i

Re: Wait for console to become available, v3.2

2009-04-26 Thread Jamie Lokier
Alan Stern wrote: > On Sat, 25 Apr 2009, Jamie Lokier wrote: > > > I'm thinking this broader use: > > > > - My boot _script_ is waiting for a disk which identifies as > > UUID=392852908752345749857 to appear before it can mount it on > > /data. If there's no such disk, it proceed

Re: Wait for console to become available, v3.2

2009-04-26 Thread David VomLehn
On Sat, Apr 25, 2009 at 02:41:52AM +0100, Jamie Lokier wrote: > David VomLehn wrote: > > I think this is over-engineered. This focused on boot devices, so you really > > don't care about things like buses, and I don't perceive a broader use. What > > really matters is particular boot device types,