You are not logged in.
Today I tripped over a nasty flaw inside the mdadm package in the hooks file of mdadm to be precise.
Given is a md raid1 device (md0), then put onto this a LVM2 volume group, with logical devices, filesystems and somesuch.
Got created the matching lines in /etc/fstab.
Then tried the first self hosted boot. --> BOOOM. Hang. Emergency shell. --> Volume group not activated.
Checked all entries in /etc/mkinitcpio.conf for HOOKS with mdadm && lvm2:
HOOKS="base udev autodetect modconf block mdadm lvm2 filesystems keyboard fsck shutdown"
plus
MODULES="ext4 md_mod raid1"
After subsequent failing boots I've checked the build / activation order of the initrd w/ lsinitcpio. Found out, that LVM2 had a early run hook, but not the mdadm!
Changed the matching function from
run_hook()
to
run_earlyhook()
for the mdadm hooks file. Build my initrd, booted and everything worked as planned.
Just FYI.
A Bug is filed against mdadm package, if anybody cares: FS#49071
--connaisseur.
Prefer anything that tastes like UNIX and beer.
Offline