Index: geninitrd
===================================================================
---- geninitrd (wersja 12585)
-+++ geninitrd (wersja 12612)
-@@ -332,6 +332,15 @@
- /lib/geninitrd/extract-ikconfig /boot/vmlinuz-$kernel
- }
-
-+# @param $module
-+basename_module() {
-+ local module=$1
-+
-+ module=${module##*/}
-+ module=${module%$modext*}
-+ echo $module
-+}
-+
- # Finds module dependencies
- #
- # @param $module
-@@ -366,9 +375,23 @@
- warn "If $module isn't compiled in kernel then this initrd may not start your system."
- fi
-
-+ local smodule
-+
- echo "$modprobe" | \
- while read insmod modpath options; do
-- [ "$insmod" = "insmod" ] && echo $modpath
-+ if [ "$insmod" = "insmod" ]; then
-+
-+ # XXX: find a away to autodetect
-+ smodule=$(basename_module $modpath)
-+ case "$smodule" in
-+ libcrc32c)
-+ find_depmod "-crc32c-intel"
-+ find_depmod "-crc32c"
+--- geninitrd (wersja 12652)
++++ geninitrd (wersja 12653)
+@@ -388,6 +388,10 @@
+ find_depmod "-crc32c-intel"
+ find_depmod "-crc32c"
+ ;;
++ virtio_blk|virtio_scsi)
++ find_depmod "-virtio_pci"
++ find_depmod "-virtio_mmio"
+ ;;
-+ esac
-+
-+ echo $modpath
-+ fi
- done
- return 0
- }
-@@ -1445,6 +1468,7 @@
- else
- initrd_gen_md
- initrd_gen_lvm
-+ initrd_gen_blkid
- initrd_gen_luks
- initrd_gen_setrootdev
- fi
+ esac
+
+ echo $modpath
Summary(pl.UTF-8): Narzędzie do tworzenia inicjalnego ramdysku używanego przy starcie systemu
Name: geninitrd
Version: 12639
-Release: 1
+Release: 2
License: GPL
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
# Source0-md5: bd47ea3ca6dbeea39af6bc5eb1d12e5a
-# svn diff http://svn.pld-linux.org/svn/geninitrd/trunk -r 12639:HEAD > geninitrd-svn.patch
+# svn diff http://svn.pld-linux.org/svn/geninitrd/trunk -r 12652:HEAD > geninitrd-svn.patch
Patch0: %{name}-svn.patch
URL: http://svn.pld-linux.org/trac/svn/wiki/packages/geninitrd
BuildRequires: xmlto >= 0:0.0.18-1
%prep
%setup -q
-#%patch0 -p0
+%patch0 -p0
%build
%{__make}