Problem pri bootovani z LVM na degradovaom MD RAID 1

Jedna sa o bug https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1351528

workaround:
- add break=premount to grub kernel line entry
- for continued visibility of text boot output also remove quiet, splash and possibly set gxmode 640x480
now @ initramfs prompt:
mdadm --detail /dev/md0 should indicate a state of clean, degraded, array is started so this part is ok
lvm lvs output attributes are as follows:
-wi-d---- (instead of the expected -wi-a----)
lvs manpage this means device tables are missing (device mapper?)
FIX: simply run lvm vgchange -ay and exit initramsfs. This will lead to a booting system.


Chyba je sposobena nevypopulovanim /dev/mapper v pripade ze RAID je v degradovanom stave. 
Workaround je: 

  * Add new file /usr/share/initramfs-tools/scripts/init-premount/10hack-raid-udev

#!/bin/sh
sleep 5
udevadm trigger –action=add
exit 0

chmod a+x /usr/share/initramfs-tools/scripts/init-premount/10hack-raid-udev

* update-initramfs -u