[PATCH] Fix for USB media not found at boot

Marcel Moolenaar xcllnt at mac.com
Tue Nov 10 19:33:36 UTC 2009


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





More information about the freebsd-current mailing list