[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#686130: still not booting from BTRFS RAID 1 on two LVs out of the box



Hi!

With todays Debian Sid/Experimental on my laptop this still doesn´t work 
right, I still have to add something like – I just recognized after I 
reinstalled initramfs-tools in a crude way after having messed it up by 
accidentally delete /var/lib/initramfs-tools (and then recognizing that it may 
have been easier to recover it than what I did):

merkaba:/etc/initramfs-tools/scripts/local-top> cat btrfs 
#!/bin/sh

PREREQ="lvm"
prereqs()
{
        echo $PREREQ
}

case $1 in
prereqs)
        prereqs
        exit 0;
esac

. /scripts/functions

log_begin_msg "Initializing BTRFS RAID-1."

modprobe btrfs
vgchange -ay
btrfs device scan

log_end_msg


Despite:

merkaba:/boot> lsinitramfs initrd.img-4.7.0-rc2-tp520-btrfstrim+ | grep 
scripts |  grep btrfs
scripts/local-premount/btrfs
scripts/local-top/btrfs

So whatever local-premount/btrfs does it not sufficient for the BTRFS RAID on 
two LVs case.


I may try again with dracut, but on my last attempt some years ago it also 
didn´t boot this out of the box.

Thanks,
-- 
Martin


Reply to: