On Fri, Mar 5, 2010 at 5:16 AM, Giovanni Trematerra <giovanni.trematerra_at_gmail.com> wrote: > Instead of this patch people can use kern.cam.boot_delay > Just set a delay in ms. > That works on 8-STABLE too. > > On Mon, Mar 1, 2010 at 5:31 PM, Hans Petter Selasky <hselasky_at_c2i.net> wrote: >> Hi, >> >> Sometimes the USB sticks won't get detected in time. You can fix this by using >> the following simple quick and dirty patch. >> >> --HPS >> >> ================================================================== >> --- sys/kern/vfs_mount.c (revision 204512) >> +++ sys/kern/vfs_mount.c (local) >> _at__at_ -1656,6 +1656,8 _at__at_ >> UMA_ALIGN_PTR, UMA_ZONE_NOFREE); >> devfs_first(); >> >> +repeat: >> + >> /* >> * We are booted with instructions to prompt for the root filesystem. >> */ >> _at__at_ -1725,9 +1727,10 _at__at_ >> * Everything so far has failed, prompt on the console if we haven't >> * already tried that. >> */ >> - if (!asked) >> - if (!vfs_mountroot_ask()) >> - goto mounted; >> + if (!asked) { >> + pause("WDISK", 1*hz); >> + goto repeat; >> + } >> >> panic("Root mount failed, startup aborted."); I agree with Giovanni as it's easier to customize than the proposed patch above; it'll be nice when the work has been done where hacks like these won't be required (waits in anticipation for scottl's cam work). Thanks! -GarrettReceived on Sat Mar 06 2010 - 07:45:40 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:01 UTC