]> git.pld-linux.org Git - packages/geninitrd.git/commitdiff
- rel 2; virtio bus driver modules loading auto/th/geninitrd-12639-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 23 Apr 2013 13:05:06 +0000 (15:05 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 23 Apr 2013 13:05:06 +0000 (15:05 +0200)
geninitrd-svn.patch
geninitrd.spec

index 9573f3c646b36ef0a82dd2ef8302a86a2046eefb..437419b391684a4e128477c298154c9e92c98353 100644 (file)
@@ -1,53 +1,15 @@
 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
index 04052310d359c282334c85cee10c58761070655a..fa0ac10f1e447eb6cdd9d3c0904abb73eb7497ba 100644 (file)
@@ -7,12 +7,12 @@ Summary:      Creates an initial ramdisk image for preloading modules
 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
@@ -87,7 +87,7 @@ bieżących informacji zawartych w /etc/modules.conf.
 
 %prep
 %setup -q
-#%patch0 -p0
+%patch0 -p0
 
 %build
 %{__make}
This page took 0.143448 seconds and 4 git commands to generate.