persistent option
On Thu, Jun 28, 2007 at 11:04:11PM +0200, Marco Amadori wrote:
> /var/log/casper.log (or /var/log/live.log)
Here there are no timestamps... can't tell you if the failure in finding
the device happens before the kernel discovers it.
> > can It be that the usb device is
> > "discovered" late?
>
> Yes, it should be that, in fact early versions of casper had a huge (buggy 15
> min) timeout that hided that problem, I probably need to think about a smart
> solution of that, but for now try to add a delay in your chroot
> in /usr/share/initramfs-tools/scripts/live grepping "cpio.gz".
I added a sleep 5, and it worked!
> Please comment the next proposed solution:
>
> As default live-initramfs will try just 1 time to find persistent media.
> If "nopersistent" is specified it will not try at all.
> If "persistent" is specified it will try with geometric wait times until a
> fixed numer of trials has passed.
I think that the geometric retry is a bit overkilling. It is probably
enough to wait, lets say, 5 seconds if the first attempt fails. I'd
never wait more than 5 seconds... in any case sleep has the granularity
of seconds...
So even if you solution is teoretically elegant I think that a second
attempt after few seconds is enough.
Cheers and thanks for the help.
--
Enrico Tassi
Reply to: