+### 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
# leave rel 1 for ac
-Release: 3
+Release: 5
License: GPL
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
Patch0: %{name}-romfs.patch
Patch1: %{name}-gzip-compressor.patch
Patch2: %{name}-scsi_sync_scan.patch
+Patch3: %{name}-tuxonice_on_dm.patch
+Patch4: %{name}-mdadm.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-ng-initrd
%endif
Obsoletes: mkinitrd
%if "%{pld_release}" == "ac"
%patch1 -p1
%endif
%patch2 -p0
+%patch3 -p1
+%patch4 -p0
%build
%{__make}