tags 291386 patch thanks Hi all,
After poking at this, I believe the attached patch represents the best available heuristic for choosing lvm10 vs. lvm2 for the initrd, given that (AIUI) there is no apparent way to query the type of an individual volume from userspace. Cheers, -- Steve Langasek postmodern programmer
diff -Nru /var/tmp/FR9bz2IRIA/initrd-tools-0.1.77/debian/changelog /var/tmp/cb9cg6WG67/initrd-tools-0.1.77/debian/changelog --- /var/tmp/FR9bz2IRIA/initrd-tools-0.1.77/debian/changelog 2005-01-23 10:37:41.000000000 -0800 +++ /var/tmp/cb9cg6WG67/initrd-tools-0.1.77/debian/changelog 2005-04-08 05:08:42.000000000 -0700 @@ -1,3 +1,15 @@ +initrd-tools (0.1.77-0.1) unstable; urgency=high + + * Non-maintainer upload. + * High-urgency upload for sarge-targetted RC bugfix + * Steve Langasek + - Don't be so hasty to use lvm10: only use it if lvmiopversion + says we're lvm10-only, *or* there's no dm-mod for the kernel; + this avoids breaking lvm2 volumes in 2.4 when lvm10 is installed. + Closes: #291386. + + -- Steve Langasek <[EMAIL PROTECTED]> Fri, 8 Apr 2005 05:06:21 -0700 + initrd-tools (0.1.77) unstable; urgency=high * Martin Michlmayr diff -Nru /var/tmp/FR9bz2IRIA/initrd-tools-0.1.77/mkinitrd /var/tmp/cb9cg6WG67/initrd-tools-0.1.77/mkinitrd --- /var/tmp/FR9bz2IRIA/initrd-tools-0.1.77/mkinitrd 2005-01-23 10:37:41.000000000 -0800 +++ /var/tmp/cb9cg6WG67/initrd-tools-0.1.77/mkinitrd 2005-04-08 05:08:52.000000000 -0700 @@ -266,7 +266,8 @@ fi LVM=yes - if module_exists drivers/md/lvm-mod && [ -d /lib/lvm-10 ]; then + if ([ "$iopver" -lt 200 ] || ! module_exists drivers/md/dm-mod) \ + && module_exists drivers/md/lvm-mod && [ -d /lib/lvm-10 ]; then echo lvm-mod echo /dev/lvm >&4 {
signature.asc
Description: Digital signature