rpms/mkinitrd/F-11 mkinitrd-rh506189.patch, NONE, 1.1 mkinitrd.spec, 1.324, 1.325

Hans de Goede jwrdegoede at fedoraproject.org
Mon Jul 27 14:49:38 UTC 2009


Author: jwrdegoede

Update of /cvs/pkgs/rpms/mkinitrd/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3430

Modified Files:
	mkinitrd.spec 
Added Files:
	mkinitrd-rh506189.patch 
Log Message:
* Mon Jul 27 2009 Hans de Goede <hdegoede at redhat.com> - 6.0.87-3
- process all PVs in required VG (#506189)


mkinitrd-rh506189.patch:
 mkinitrd |    6 ++++++
 1 file changed, 6 insertions(+)

--- NEW FILE mkinitrd-rh506189.patch ---
From: Ian Pilcher <ipilcher at redhat.com>
Date: Tue, 30 Jun 2009 18:58:16 +0000 (+0200)
Subject: mkinitrd: process all PVs in required VG (#506189)
X-Git-Tag: 6.0.90-1~1
X-Git-Url: http://git.fedorahosted.org/git/?p=mkinitrd;a=commitdiff_plain;h=5a8a3c4361f61edec033c2bd2a24bdd97f40b60f

mkinitrd: process all PVs in required VG (#506189)

Until this patch we've assumed that sysfs will actually list all of the
physical volumes that make up a logical volume's volume group.
This is not the case. For a linear LV, sysfs will *only* list PVs that actually
hold data from that LV.
---

diff --git a/mkinitrd b/mkinitrd
index 3b962b7..3f831a6 100755
--- a/mkinitrd
+++ b/mkinitrd
@@ -563,6 +563,12 @@ EOF
         case " $vg_list " in
         *" $vg "*) ;;
         *)  vg_list="$vg_list $vg"
+            # sysfs will not necessarily list all of the devices which make up a VG
+            # as slaves of an LV.  (See BZ #506189.)
+            local vg_devs=$(vgs --noheadings -o pv_name $vg)
+            for vg_dev in $vg_devs ; do
+                findstoragedriver $vg_dev
+            done
             [ -z "$nolvm" ] && find_base_dm_mods
             ;;
         esac


Index: mkinitrd.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mkinitrd/F-11/mkinitrd.spec,v
retrieving revision 1.324
retrieving revision 1.325
diff -u -p -r1.324 -r1.325
--- mkinitrd.spec	16 Jul 2009 15:00:25 -0000	1.324
+++ mkinitrd.spec	27 Jul 2009 14:49:38 -0000	1.325
@@ -3,10 +3,11 @@
 Summary: Creates an initial ramdisk image for preloading modules.
 Name: mkinitrd
 Version: 6.0.87
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+
 Group: System Environment/Base
 Source0: mkinitrd-%{version}.tar.bz2
+Patch0: mkinitrd-rh506189.patch
 ExclusiveOs: Linux
 URL: git://git.fedoraproject.org/git/hosted/mkinitrd
 Requires: /bin/sh, /sbin/insmod.static, /sbin/losetup
@@ -79,6 +80,7 @@ information about the current boot envir
 
 %prep
 %setup -q -n mkinitrd-%{version}
+%patch0 -p1
 find . -name "Makefile*" -exec sed -i 's|-Werror||g' {} \;
 
 %build
@@ -137,6 +139,9 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_sysconfdir}/kernel/prerm.d
 
 %changelog
+* Mon Jul 27 2009 Hans de Goede <hdegoede at redhat.com> - 6.0.87-3
+- process all PVs in required VG (#506189)
+
 * Thu Jul 16 2009 Karsten Hopp <karsten at redhat.com> 6.0.87-2
 - bump and rebuild for soname change of libparted on s390x
 




More information about the fedora-extras-commits mailing list