]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.spec: nbd is Fedora only
authorWarren Togami <wtogami@redhat.com>
Thu, 14 Jan 2010 17:11:52 +0000 (18:11 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 14 Jan 2010 17:11:52 +0000 (18:11 +0100)
dracut.spec

index e56704f6166c2e3163a341f87378529051ab1df8..b4ec0faad5aad3a960fe3a997a3ce606d452abe5 100644 (file)
@@ -1,11 +1,14 @@
-%define with_switch_root 1
+# Variables must be defined
+%define with_switch_root       1
+%define with_nbd               1
 
-%if 0%{?fedora} > 11
+# switchroot provided by util-linux-ng in F-12+
+%if 0%{?fedora} > 11 || 0%{?rhel} >= 6
 %define with_switch_root 0
 %endif
-
-%if 0%{?rhel} > 5
-%define with_switch_root 0
+# nbd in Fedora only
+%if 0%{?rhel} >= 6
+%define with_nbd 0
 %endif
 
 %if %{defined gittag}
@@ -17,7 +20,7 @@
 
 Name: dracut
 Version: 003
-Release: 2%{?rdist}
+Release: 3%{?rdist}
 Summary: Initramfs generator using udev
 Group: System Environment/Base         
 License: GPLv2+        
@@ -75,7 +78,9 @@ Summary: Dracut modules to build a dracut initramfs with network support
 Requires: %{name} = %{version}-%{release}
 Requires: rpcbind nfs-utils 
 Requires: iscsi-initiator-utils
+%if %{with_nbd}
 Requires: nbd
+%endif
 Requires: net-tools iproute
 Requires: bridge-utils
 
@@ -230,10 +235,13 @@ rm -rf $RPM_BUILD_ROOT
 %dir /var/lib/dracut/overlay
 
 %changelog
-* Wed Jan 13 2010 Harald Hoyer <harald@redhat.com> 003-2
+* Wed Jan 13 2010 Harald Hoyer <harald@redhat.com> 003-3
 - add Obsoletes of mkinitrd/nash/libbdevid-python
 - Related: rhbz#543948
 
+* Wed Jan 13 2010 Warren Togami <wtogami@redhat.com> 003-2
+- nbd is Fedora only
+
 * Fri Nov 27 2009 Harald Hoyer <harald@redhat.com> 003-1
 - version 003