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

Bug#337704: initramfs-tools: evms root *still* broken -- only part of 336617 resolved!



Package: initramfs-tools
Version: 0.38
Severity: important
Tags: patch

336617 was closed out without using the additional patches I submitted.
I'm having problems re-opening the bug, so I'm just submitting a new one.

The following two patches need to be applied to evms 0.38 in order to allow
booting to evms volumes located on lvm and md regions.  Tested with stock
linux-image-2.6.14-1-686-smp.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.01-3   Tiny utilities for small and embed
ii  cpio                          2.6-9      GNU cpio -- a program to manage ar
ii  klibc-utils                   1.1.1-2    small statically-linked utilities 
ii  mklibs-copy                   0.1.18     Shared library reduction script
ii  udev                          0.071-1    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information
--- initramfs-tools/hooks/evms	2005-11-01 22:21:25.000000000 -0800
+++ initramfs-tools/hooks/evms	2005-11-02 09:30:55.000000000 -0800
@@ -21,15 +21,16 @@
 fi
 
 cp /sbin/evms_activate ${DESTDIR}/sbin
+cp /etc/evms.conf ${DESTDIR}/etc
 
 EVMS_VERSION=$(/usr/sbin/evms_query info | grep "EVMS Version" | awk '{ print $3; }')
 
 mkdir -p ${DESTDIR}/lib/evms/${EVMS_VERSION}
 
-for x in disk lvm2 dos multipath; do
+for x in bbr bbr_seg bsd disk dos drivelink gpt lvm2 mac md multipath; do
 	cp /lib/evms/${EVMS_VERSION}/${x}* ${DESTDIR}/lib/evms/${EVMS_VERSION}
 done
 
-for x in dm_mod; do
+for x in dm_mod linear raid0 raid1 raid10 raid5 raid6; do
         manual_add_modules ${x}
 done
--- initramfs-tools/scripts/local-top/evms	2005-09-19 05:49:09.000000000 -0700
+++ initramfs-tools/scripts/local-top/evms	2005-11-02 09:31:34.000000000 -0800
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-PREREQ="lvm"
+PREREQ=""
 
 prereqs()
 {
@@ -16,16 +16,15 @@
 esac
 
 evms=${ROOT#/dev/evms/}
-
 case ${evms} in
-	/dev/root)
-		unset evms
-		;;
 	/*)
 		exit 0
 		;;
 esac
-	
-modprobe -q dm-mod
+unset evms
+
+for module in dm-mod linear raid0 raid1 raid10 raid5 raid6 ; do
+	modprobe -q $module
+done
 
 /sbin/evms_activate

Reply to: