+### TODO:
+# - BUG: you can't set in /etc/mdadm.conf:
+# DEVICE partitions containers
+# (which is default BTW if none set). Generation of initrd will fail
+#
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: 10000.20
+Version: 10000.32
# leave rel 1 for ac
Release: 2
License: GPL
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
-# Source0-md5: de4e015717e7dc37417a6b687063a49f
+# Source0-md5: 9d75e347ff49312209e97ead93378f4a
Patch0: %{name}-romfs.patch
Patch1: %{name}-gzip-compressor.patch
-Patch2: %{name}-scsi_sync_scan.patch
BuildRequires: xmlto >= 0:0.0.18-1
Requires: /usr/bin/ldd
Requires: awk
Requires: lvm2-initrd
Requires: mdadm-initrd >= 1.12.0-1
%else
-# otherwise LVM subsystem is automatically disabled in geninitrd
+# otherwise LVM subsystem is not enabled in geninitrd
Suggests: lvm2-initrd
# without this softraid installations of PLD fail
Suggests: mdadm-initrd >= 1.12.0-1
-Suggests: mdadm >= 1.12.0-1
+%endif
+# suggest for blkid
+%if "%{pld_release}" != "ac"
+Suggests: util-linux-initrd
%endif
Obsoletes: mkinitrd
%if "%{pld_release}" == "ac"
%if "%{pld_release}" == "ti"
%patch0 -p1
%patch1 -p1
-%patch2 -p0
%endif
%build
%dir /lib/geninitrd
/lib/geninitrd/functions
/lib/geninitrd/mod-*.sh
+%attr(755,root,root) /lib/geninitrd/extract-ikconfig