Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
boot fix for slow devices without udev using LABELS #1
ProBackup-nl wants to merge 1 commit into falconindy:masterfrom ProBackup-nl:patch-1
Commits on Mar 19, 2017
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.