[sorry for forgetting to Cc the bug while modifying it]

Hi,

I stumbled upon the same bug: converted my root LV to raid1, and
couldn't boot anymore. Furthermore, on a headless system, it was a bit
painful to get it back running. I tested adding only "dm_raid" to the
list of modules, and this should suffice as "raid1" is in its
dependencies. The attached patch (for package lvm2, the initramfs hook
being included in it, not in initramfs-tools) will do it.

Regards,
--
benjamin

>From 3365e98b9e26d0c71464632de7d09bbe8af5d63e Mon Sep 17 00:00:00 2001
From: Benjamin Cama <ben...@dolka.fr>
Date: Fri, 22 Nov 2013 03:54:01 +0100
Subject: [PATCH] Include dm_raid in initramfs for LVM2

Now that LVM2 can include RAID personallities, the needed module(s)
ought to be included.
---
 debian/tree/lvm2/usr/share/initramfs-tools/hooks/lvm2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/tree/lvm2/usr/share/initramfs-tools/hooks/lvm2 b/debian/tree/lvm2/usr/share/initramfs-tools/hooks/lvm2
index 79ee48e..04f6798 100755
--- a/debian/tree/lvm2/usr/share/initramfs-tools/hooks/lvm2
+++ b/debian/tree/lvm2/usr/share/initramfs-tools/hooks/lvm2
@@ -38,6 +38,6 @@ copy_exec /sbin/dmsetup
 copy_exec /sbin/lvm
 ln -s lvm ${DESTDIR}/sbin/vgchange
 
-for x in dm_mod dm_snapshot dm_mirror; do
+for x in dm_mod dm_snapshot dm_mirror dm_raid; do
 	manual_add_modules ${x}
 done
-- 
1.8.4.2

Reply via email to