Re: [PATCH] Fix for USB media not found at boot

From: Marcel Moolenaar <xcllnt_at_mac.com>
Date: Tue, 10 Nov 2009 11:33:34 -0800
On Nov 10, 2009, at 10:16 AM, Xin LI wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hans Petter Selasky wrote:
>> Hi,
>> 
>> There is a newer patch in USB P4.
>> 
>> The problem is when the /usr partition for example is not residing on the root 
>> disk, which is the only disk the code is waiting for. Then the patch will make 
>> the bootup fail.
> 
> What if we teach rc.d scripts to do something like this:
> 
> do {
> 	mount -a && break;
> 	sleep 1; counter++;
> } while counter < 30?
> 
> Will this make sense?  Or is there any other concerns?

We should add more specific control by adding mount options.
Just like NFS mounts can be done in the background, so can
we have a mount option that doesn't cause a fail when the
underlying device isn't there, but instead results in mount
blocking until the device arrives. This then can be combined
with a background option to have the boot continue while the
mount is pending.

-- 
Marcel Moolenaar
xcllnt_at_mac.com
Received on Tue Nov 10 2009 - 18:33:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:57 UTC