boot fix for slow devices without udev using LABELS #1

Closed
wants to merge 1 commit into
from
Commits on Mar 19, 2017
  1. boot fix for slow devices without udev using LABELS

    ProBackup-nl committed Mar 19, 2017
    Optimized bootups according to http://blog.falconindy.com/articles/optmizing-bootup-with-mkinitcpio.html and https://wiki.archlinux.org/index.php/Minimal_initramfs#Udev_requirement might end up without the mkinitcpio udev hook. As a result the initramfs resolve_device() function will only be called once. 
    
    Not ultra fast devices (CPU, USB flash memory) or BTRFS might not yet be able to map labels (UUID, LABEL, PARTUUID, PARTLABEL) to a device, yet. That may take a few seconds. As a result initramfs is not being able to find the root device and errors out in the emergency shell. This fix will retry up to 5 seconds when udev is not running.
    
    Tested on Intel DE3815TYKE with Samsung MUF-32BB flash drive and btrfs.