FS#21255 - [mkinitcpio] md device on usb, timing issue.
Attached to Project:
Arch Linux
Opened by Joe Lightning (ZKDLBNHX) - Thursday, 14 October 2010, 19:28 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 27 March 2011, 11:06 GMT
Opened by Joe Lightning (ZKDLBNHX) - Thursday, 14 October 2010, 19:28 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 27 March 2011, 11:06 GMT
|
Details
Description: I have a usb flash drive raid array for a root
partition, and initrd wouldn't mount it simply because it
didn't wait long-enough for the usb drives to settle before
trying to run mdassemble.
Fixed simply by changing /lib/initcpio/hooks/mdadm to contain: run_hook () { until [[ -b /dev/disk/by-id/usb-Lexar_USB_Flash_Drive_CSX364JMU89PIS6AERB4-0:0 ]] && [[ -b /dev/disk/by-id/usb-Lexar_USB_Flash_Drive_TG50AKWUNF92TULZRXMG-0:0 ]] && [[ -b /dev/di sleep 1 done /sbin/mdassemble } Obviously this fix is specific to my system but you get the idea. |
This task depends upon
Closed by Thomas Bächler (brain0)
Sunday, 27 March 2011, 11:06 GMT
Reason for closing: Fixed
Additional comments about closing: sleep hook, "sleepdevice" kernel parameter.
Sunday, 27 March 2011, 11:06 GMT
Reason for closing: Fixed
Additional comments about closing: sleep hook, "sleepdevice" kernel parameter.
$ mkinitcpio -H sleep
Help for hook 'sleep':
This hook causes the init process to interrupt
for a fixed time interval. The time in seconds
can be specified in the sleeptime= command line
parameter. The default is 5 seconds.
https://projects.archlinux.org/mkinitcpio.git/commit/?id=02e263c5bcec23f9134140dcef5b6f5a4412ed2b