You are not logged in.
Pages: 1
Yes I know this should go in flyspray but flyspray won't let me sign up (it sais my email address is already registered, but the `forgotten paasword' button thingy asks for my username which I don't know).
Anyway, 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/disk/by-id/usb-Lexar_USB_Flash_Drive_W41DHVIMVGGVE1IYOZKM-0:0 ]] && [[ -b /dev/disk/by-id/usb-Lexar_USB_Flash_Drive_Z7MSL5ULJ2IJXBILT3C1-0:0 ]] ; do
sleep 1
done
/sbin/mdassemble
}
Obviously this fix is specific to my system but you get the idea. And sleep 1 might be too long perhaps 0.1 would be better.
I hope someone can submit it to the bug tracker for me ty.
Offline
Hi,
I've now found a bug in /etc/rc.sysinit.
It doesn't probe partition tables after activating encrypted devices, so if you have a partition table on top of an encrypted block device it cannot use it.
fix:
partprobe /dev/mapper/<device>
Before the fsck stage.
Thanks peeps and I hope someone can add it to the bug tracker for me.
Offline
partprobe can also be used without a parameter (then it rescans all devices for partitions).
Interesting.
Offline
Pages: 1