> +    {
> +      err = grub_ofdisk_open_real (name, disk);
> +      cont = grub_get_time_ms () < timeout;
> +      if (err == GRUB_ERR_UNKNOWN_DEVICE && cont)
> +        {
> +          grub_dprintf ("ofdisk","Failed to open disk %s. Retrying...\n", 
> name);
> +          grub_errno = GRUB_ERR_NONE;
> +        }
> +      else
> +          break;
> +      grub_millisleep (1000);

Can you make this exponentially increasing and add a random number.
Something like:
(32 << try) * (32 + random_between(-16, +16))

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to