packages: geninitrd/geninitrd-svn.patch, geninitrd/geninitrd.spec - rel 2; ...

arekm arekm at pld-linux.org
Thu Aug 25 19:56:04 CEST 2011


Author: arekm                        Date: Thu Aug 25 17:56:04 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 2; fix mod-sata matching (again!)

---- Files affected:
packages/geninitrd:
   geninitrd-svn.patch (2.4 -> 2.5) , geninitrd.spec (2.183 -> 2.184) 

---- Diffs:

================================================================
Index: packages/geninitrd/geninitrd-svn.patch
diff -u packages/geninitrd/geninitrd-svn.patch:2.4 packages/geninitrd/geninitrd-svn.patch:2.5
--- packages/geninitrd/geninitrd-svn.patch:2.4	Fri Mar 11 12:36:22 2011
+++ packages/geninitrd/geninitrd-svn.patch	Thu Aug 25 19:55:58 2011
@@ -1,69 +1,13 @@
-Index: geninitrd
-===================================================================
---- geninitrd	(wersja 12174)
-+++ geninitrd	(kopia robocza)
-@@ -772,9 +772,9 @@
- 			device=$rootdev
- 		fi
- 
--		[ -n "$ROOTFSFLAG" ] && ROOTFSFLAGS="-o $ROOTFSFLAGS"
-+		[ -n "$ROOTFSFLAGS" ] && ROOTFSFLAGS="-o $ROOTFSFLAGS"
- 
--		mount -t $rootfs -r $device $ROOTFSFLAGS /newroot
-+		mount -t $rootfs -r $device $ROOTFSFLAGS /newroot || echo "Mount of rootfs failed."
- 		init="$(echo "$CMDLINE" | busybox awk '/init=\// { gsub(/.*init=/,NIL,$0); gsub(/ .*/,NIL,$0); print }')"
- 		if [ -z "$init" -o ! -x "/newroot$init" ]; then
- 			init=/sbin/init
-Index: geninitrd
-===================================================================
---- geninitrd	(wersja 12182)
-+++ geninitrd	(kopia robocza)
-@@ -709,7 +709,7 @@
- 			rootnr="$(busybox awk -v rootnode="${ROOT##/dev/}" '$4 == rootnode { print 256 * $1 + $2 }' /proc/partitions)"
- 			# fallback to ls
- 			if [ -z "$rootnr" ]; then
--				rootnr="$(busybox ls -lL ${ROOT} | awk '{if (/^b/) { print 256 * $3 + $4; }}')"
-+				rootnr="$(busybox ls -lL ${ROOT} | busybox awk '{if (/^b/) { print 256 * $3 + $4; }}')"
- 			fi
- 			if [ -n "$rootnr" ]; then
- 				echo "$rootnr" > /proc/sys/kernel/real-root-dev
 Index: mod-sata.sh
 ===================================================================
---- mod-sata.sh	(wersja 12194)
+--- mod-sata.sh	(wersja 12334)
 +++ mod-sata.sh	(kopia robocza)
-@@ -17,7 +17,7 @@
- 
- # private until only mod-sata uses the function
- find_modules_by_class() {
--	local class=$1
-+	local req_class=$1
- 
- 	# no pcimap, nothing to lookup from
- 	if [ ! -f "$pcimap" ]; then
-@@ -28,10 +28,12 @@
- 		return
- 	fi
- 
--	set -- $($lspci -n | awk -vclass=$class '$2 == class":" {split($3, p, ":"); printf("0x0000%s 0x0000%s\n", p[1], p[2])}')
-+	set -- $($lspci -n | awk -vclass=$req_class '$2 == class":" {split($3, p, ":"); printf("0x0000%s 0x0000%s\n", p[1], p[2])}')
- 
+@@ -33,7 +33,7 @@
  	local PCI_ANY_ID=0x0000ffff pci_module vendor device subvendor subdevice class class_mask driver_data
  	while read pci_module vendor device subvendor subdevice class class_mask driver_data; do
-+		# match class
-+		[ "$(($req_class & $class_mask))" = "$class" ] || continue
+ 		# match class
+-		[ "$(($req_class & $class_mask))" = "$class" ] || continue
++		[ "$(($req_class & $class_mask))" = "$(($class))" ] || continue
  		# match vendor
  		[ "$1" = "$vendor" ] || continue
  		# match device, allow PCI_ANY_ID
-Index: geninitrd
-===================================================================
---- geninitrd	(wersja 12198)
-+++ geninitrd	(kopia robocza)
-@@ -467,7 +467,7 @@
- 		devpath=$(dm_node "$devpath")
- 	fi
- 
--	if [ -L "$devpath" ] && ! is_lvm "$devpath"; then
-+	if [ -L "$devpath" ] && ! is_lvm "$devpath" && ! is_luks "$devpath"; then
- 		# sanitize things like:
- 		# /dev/block/104:2 -> /dev/cciss/c0d0p2
- 		devpath=$(readlink -f "$devpath")

================================================================
Index: packages/geninitrd/geninitrd.spec
diff -u packages/geninitrd/geninitrd.spec:2.183 packages/geninitrd/geninitrd.spec:2.184
--- packages/geninitrd/geninitrd.spec:2.183	Wed Aug 10 12:22:41 2011
+++ packages/geninitrd/geninitrd.spec	Thu Aug 25 19:55:58 2011
@@ -8,14 +8,14 @@
 Summary(pl.UTF-8):	Narzędzie do tworzenia inicjalnego ramdysku używanego przy starcie systemu
 Name:		geninitrd
 Version:	10000.34
-Release:	1
+Release:	2
 License:	GPL
 Group:		Applications/System
 Source0:	%{name}-%{version}.tar.gz
 # Source0-md5:	87585c07b85afcd4f32239969673e0b2
 Patch0:		%{name}-romfs.patch
 Patch1:		%{name}-gzip-compressor.patch
-#Patch2:	%{name}-svn.patch
+Patch2:		%{name}-svn.patch
 URL:		http://svn.pld-linux.org/trac/svn/wiki/packages/geninitrd
 BuildRequires:	xmlto >= 0:0.0.18-1
 Requires:	/usr/bin/ldd
@@ -94,7 +94,7 @@
 %patch0 -p1
 %patch1 -p1
 %endif
-#%patch2 -p0
+%patch2 -p0
 
 %build
 %{__make}
@@ -125,6 +125,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 2.184  2011/08/25 17:55:58  arekm
+- rel 2; fix mod-sata matching (again!)
+
 Revision 2.183  2011/08/10 10:22:41  glen
 - up to 10000.34
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/geninitrd/geninitrd-svn.patch?r1=2.4&r2=2.5&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/geninitrd/geninitrd.spec?r1=2.183&r2=2.184&f=u



More information about the pld-cvs-commit mailing list