nbd is Fedora only
This commit is contained in:
parent
348aae150c
commit
f7bd513a94
15
dracut.spec
15
dracut.spec
@ -1,11 +1,14 @@
|
|||||||
|
# Variables must be defined
|
||||||
%define with_switch_root 1
|
%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
|
%define with_switch_root 0
|
||||||
%endif
|
%endif
|
||||||
|
# nbd in Fedora only
|
||||||
%if 0%{?rhel} > 5
|
%if 0%{?rhel} >= 6
|
||||||
%define with_switch_root 0
|
%define with_nbd 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{defined gittag}
|
%if %{defined gittag}
|
||||||
@ -17,7 +20,7 @@
|
|||||||
|
|
||||||
Name: dracut
|
Name: dracut
|
||||||
Version: 003
|
Version: 003
|
||||||
Release: 1%{?rdist}
|
Release: 2%{?rdist}
|
||||||
Summary: Initramfs generator using udev
|
Summary: Initramfs generator using udev
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -67,7 +70,9 @@ Summary: Dracut modules to build a dracut initramfs with network support
|
|||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: rpcbind nfs-utils
|
Requires: rpcbind nfs-utils
|
||||||
Requires: iscsi-initiator-utils
|
Requires: iscsi-initiator-utils
|
||||||
|
%if %{with_nbd}
|
||||||
Requires: nbd
|
Requires: nbd
|
||||||
|
%endif
|
||||||
Requires: net-tools iproute
|
Requires: net-tools iproute
|
||||||
Requires: bridge-utils
|
Requires: bridge-utils
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user