2009-09-17 10:29:32 +00:00
|
|
|
%define gittag 0f7e10ce
|
2009-07-01 20:24:30 +00:00
|
|
|
%if 0%{?fedora} < 12
|
|
|
|
%define with_switch_root 1
|
|
|
|
%else
|
2009-07-26 07:56:10 +00:00
|
|
|
%define with_switch_root 0
|
2009-07-01 20:24:30 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{defined gittag}
|
2009-09-02 13:58:47 +00:00
|
|
|
%define rdist .git%{gittag}%{?dist}
|
2009-07-01 20:24:30 +00:00
|
|
|
%define dashgittag -%{gittag}
|
|
|
|
%else
|
|
|
|
%define rdist %{?dist}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: dracut
|
2009-09-02 13:58:47 +00:00
|
|
|
Version: 001
|
2009-09-17 10:29:32 +00:00
|
|
|
Release: 12%{?rdist}
|
2009-07-01 20:24:30 +00:00
|
|
|
Summary: Initramfs generator using udev
|
|
|
|
Group: System Environment/Base
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://apps.sourceforge.net/trac/dracut/wiki
|
|
|
|
Source0: dracut-%{version}%{?dashgittag}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Requires: udev
|
|
|
|
Requires: util-linux-ng
|
2009-08-06 15:13:34 +00:00
|
|
|
Requires: module-init-tools >= 3.7-9
|
2009-07-01 20:24:30 +00:00
|
|
|
Requires: cpio
|
|
|
|
Requires: coreutils
|
|
|
|
Requires: findutils
|
2009-07-04 08:08:11 +00:00
|
|
|
Requires: binutils
|
2009-07-01 20:24:30 +00:00
|
|
|
Requires: grep
|
2009-08-03 17:51:30 +00:00
|
|
|
Requires: which
|
2009-08-06 15:13:34 +00:00
|
|
|
Requires: mktemp >= 1.5-5
|
2009-07-01 20:24:30 +00:00
|
|
|
Requires: mount
|
|
|
|
Requires: bash
|
2009-08-14 16:02:07 +00:00
|
|
|
Requires: dash
|
2009-07-01 20:24:30 +00:00
|
|
|
Requires: /bin/sh
|
2009-08-06 15:13:34 +00:00
|
|
|
Requires: fileutils, gzip, tar
|
2009-07-01 20:24:30 +00:00
|
|
|
Requires: lvm2 >= 2.02.33-9, dhclient
|
|
|
|
Requires: filesystem >= 2.1.0, cpio, device-mapper, initscripts >= 8.63-1
|
|
|
|
Requires: e2fsprogs >= 1.38-12, libselinux, libsepol, coreutils
|
|
|
|
Requires: mdadm, elfutils-libelf, plymouth >= 0.7.0
|
|
|
|
Requires: cryptsetup-luks
|
2009-08-03 17:51:30 +00:00
|
|
|
Requires: file
|
2009-08-03 18:27:50 +00:00
|
|
|
Requires: bzip2
|
2009-07-01 20:24:30 +00:00
|
|
|
Requires: dmraid
|
2009-08-26 18:55:50 +00:00
|
|
|
Requires: kbd
|
2009-09-09 19:19:17 +00:00
|
|
|
Requires: plymouth-scripts
|
2009-07-01 20:24:30 +00:00
|
|
|
|
|
|
|
%if ! 0%{?with_switch_root}
|
2009-07-26 07:56:10 +00:00
|
|
|
Requires: util-linux-ng >= 2.16
|
2009-08-27 01:35:36 +00:00
|
|
|
BuildArch: noarch
|
2009-07-01 20:24:30 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
dracut is a new, event-driven initramfs infrastructure based around udev.
|
|
|
|
|
2009-09-02 13:58:47 +00:00
|
|
|
%package network
|
|
|
|
Summary: dracut modules to build a dracut initramfs with network support
|
2009-07-01 20:24:30 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: rpcbind nfs-utils
|
|
|
|
Requires: iscsi-initiator-utils
|
|
|
|
Requires: nbd
|
|
|
|
Requires: net-tools iproute
|
2009-09-02 13:58:47 +00:00
|
|
|
Requires: bridge-utils
|
|
|
|
|
|
|
|
%description network
|
|
|
|
This package requires everything which is needed to build a generic
|
|
|
|
all purpose initramfs with network support with dracut.
|
|
|
|
|
|
|
|
%package generic
|
|
|
|
Summary: Metapackage to build a generic initramfs with dracut
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}-network = %{version}-%{release}
|
2009-07-25 09:11:39 +00:00
|
|
|
|
|
|
|
%description generic
|
|
|
|
This package requires everything which is needed to build a generic
|
|
|
|
all purpose initramfs with dracut.
|
|
|
|
|
2009-09-02 13:58:47 +00:00
|
|
|
|
2009-07-25 09:11:39 +00:00
|
|
|
%package kernel
|
|
|
|
Summary: Metapackage to build generic initramfs with dracut with only kernel modules
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2009-07-04 08:08:11 +00:00
|
|
|
Requires: ql2100-firmware
|
|
|
|
Requires: ql2200-firmware
|
|
|
|
Requires: ql23xx-firmware
|
|
|
|
Requires: ql2400-firmware
|
|
|
|
Requires: ql2500-firmware
|
2009-07-01 20:24:30 +00:00
|
|
|
|
2009-07-25 09:11:39 +00:00
|
|
|
%description kernel
|
|
|
|
This package requires everything which is needed to build a initramfs with all
|
|
|
|
kernel modules and firmware files needed by dracut modules.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: dracut tools to build the local initramfs
|
2009-08-06 15:13:34 +00:00
|
|
|
Requires: coreutils cryptsetup-luks device-mapper
|
|
|
|
Requires: diffutils dmraid findutils gawk grep lvm2
|
|
|
|
Requires: module-init-tools sed
|
|
|
|
Requires: cpio gzip
|
2009-07-25 09:11:39 +00:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package contains tools to assemble the local initrd and host configuration.
|
2009-07-01 20:24:30 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}%{?dashgittag}
|
|
|
|
|
|
|
|
%build
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2009-09-02 13:58:47 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT sbindir=/sbin \
|
|
|
|
sysconfdir=/etc mandir=%{_mandir}
|
2009-07-01 20:24:30 +00:00
|
|
|
|
2009-09-17 10:29:32 +00:00
|
|
|
echo %{name}-%{version}-%{release} > $RPM_BUILD_ROOT/%{_datadir}/dracut/modules.d/10rpmversion/dracut-version
|
|
|
|
|
2009-07-01 20:24:30 +00:00
|
|
|
%if ! 0%{?with_switch_root}
|
|
|
|
rm -f $RPM_BUILD_ROOT/sbin/switch_root
|
|
|
|
%endif
|
|
|
|
|
2009-07-25 09:11:39 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/boot/dracut
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/dracut/overlay
|
|
|
|
|
2009-07-01 20:24:30 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,0755)
|
2009-09-02 13:58:47 +00:00
|
|
|
%doc README HACKING TODO COPYING AUTHORS NEWS
|
2009-07-01 20:24:30 +00:00
|
|
|
/sbin/dracut
|
|
|
|
%if 0%{?with_switch_root}
|
|
|
|
/sbin/switch_root
|
|
|
|
%endif
|
|
|
|
%dir %{_datadir}/dracut
|
|
|
|
%{_datadir}/dracut/dracut-functions
|
|
|
|
%config(noreplace) /etc/dracut.conf
|
|
|
|
%{_mandir}/man8/dracut.8*
|
2009-09-02 13:58:47 +00:00
|
|
|
%{_datadir}/dracut/modules.d/00dash
|
|
|
|
%{_datadir}/dracut/modules.d/10redhat-i18n
|
|
|
|
%{_datadir}/dracut/modules.d/10rpmversion
|
|
|
|
%{_datadir}/dracut/modules.d/50plymouth
|
|
|
|
%{_datadir}/dracut/modules.d/90crypt
|
|
|
|
%{_datadir}/dracut/modules.d/90dmraid
|
|
|
|
%{_datadir}/dracut/modules.d/90dmsquash-live
|
|
|
|
%{_datadir}/dracut/modules.d/90kernel-modules
|
|
|
|
%{_datadir}/dracut/modules.d/90lvm
|
|
|
|
%{_datadir}/dracut/modules.d/90mdraid
|
|
|
|
%{_datadir}/dracut/modules.d/95debug
|
|
|
|
%{_datadir}/dracut/modules.d/95resume
|
|
|
|
%{_datadir}/dracut/modules.d/95rootfs-block
|
|
|
|
%{_datadir}/dracut/modules.d/95s390
|
|
|
|
%{_datadir}/dracut/modules.d/95terminfo
|
|
|
|
%{_datadir}/dracut/modules.d/95udev-rules
|
|
|
|
%{_datadir}/dracut/modules.d/95udev-rules.ub810
|
|
|
|
%{_datadir}/dracut/modules.d/98syslog
|
|
|
|
%{_datadir}/dracut/modules.d/99base
|
|
|
|
|
|
|
|
%files network
|
2009-07-01 20:24:30 +00:00
|
|
|
%defattr(-,root,root,0755)
|
2009-09-02 13:58:47 +00:00
|
|
|
%{_datadir}/dracut/modules.d/40network
|
|
|
|
%{_datadir}/dracut/modules.d/95fcoe
|
|
|
|
%{_datadir}/dracut/modules.d/95iscsi
|
|
|
|
%{_datadir}/dracut/modules.d/95nbd
|
|
|
|
%{_datadir}/dracut/modules.d/95nfs
|
2009-07-01 20:24:30 +00:00
|
|
|
|
2009-07-25 09:11:39 +00:00
|
|
|
%files kernel
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%doc README.kernel
|
|
|
|
|
2009-09-02 13:58:47 +00:00
|
|
|
%files generic
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%doc README.generic
|
|
|
|
|
2009-07-25 09:11:39 +00:00
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root,0755)
|
2009-09-02 13:58:47 +00:00
|
|
|
%doc COPYING NEWS
|
2009-07-25 09:11:39 +00:00
|
|
|
/sbin/dracut-gencmdline
|
|
|
|
/sbin/dracut-catimages
|
|
|
|
%dir /boot/dracut
|
|
|
|
%dir /var/lib/dracut
|
|
|
|
%dir /var/lib/dracut/overlay
|
|
|
|
|
2009-07-01 20:24:30 +00:00
|
|
|
%changelog
|
2009-09-17 10:29:32 +00:00
|
|
|
* Wed Sep 16 2009 Harald Hoyer <harald@redhat.com> 001-12
|
|
|
|
- removed lvm/mdraid/dmraid lock files
|
|
|
|
- add missing ifname= files
|
|
|
|
|
|
|
|
* Wed Sep 16 2009 Harald Hoyer <harald@redhat.com> 001-11
|
|
|
|
- generate dracut-version during rpm build time
|
|
|
|
|
|
|
|
* Tue Sep 15 2009 Harald Hoyer <harald@redhat.com> 001-10
|
|
|
|
- add ifname= argument for persistent netdev names
|
|
|
|
- new /initqueue-finished to check if the main loop can be left
|
|
|
|
- copy mdadm.conf if --mdadmconf set or mdadmconf in dracut.conf
|
|
|
|
|
|
|
|
* Wed Sep 09 2009 Harald Hoyer <harald@redhat.com> 001-9
|
2009-09-09 19:19:17 +00:00
|
|
|
- added Requires: plymouth-scripts
|
|
|
|
|
2009-09-09 18:02:43 +00:00
|
|
|
* Wed Sep 09 2009 Harald Hoyer <harald@redhat.com> 001-8
|
|
|
|
- plymouth: use plymouth-populate-initrd
|
|
|
|
- add add_drivers for dracut and dracut.conf
|
|
|
|
- do not mount /proc and /selinux manually in selinux-load-policy
|
|
|
|
|
2009-09-09 09:35:51 +00:00
|
|
|
* Wed Sep 09 2009 Harald Hoyer <harald@redhat.com> 001-7
|
|
|
|
- add scsi_wait_scan to be sure everything was scanned
|
|
|
|
|
2009-09-08 14:32:45 +00:00
|
|
|
* Tue Sep 08 2009 Harald Hoyer <harald@redhat.com> 001-6
|
|
|
|
- fixed several problems with md raid containers
|
|
|
|
- fixed selinux policy loading
|
|
|
|
|
2009-09-08 09:54:37 +00:00
|
|
|
* Tue Sep 08 2009 Harald Hoyer <harald@redhat.com> 001-5
|
|
|
|
- patch does not honor file modes, fixed them manually
|
|
|
|
|
2009-09-07 17:22:36 +00:00
|
|
|
* Mon Sep 07 2009 Harald Hoyer <harald@redhat.com> 001-4
|
|
|
|
- fixed mdraid for IMSM
|
|
|
|
|
2009-09-07 09:44:58 +00:00
|
|
|
* Mon Sep 07 2009 Harald Hoyer <harald@redhat.com> 001-3
|
|
|
|
- fixed bug, which prevents installing 61-persistent-storage.rules (bug #520109)
|
|
|
|
|
2009-09-03 15:32:41 +00:00
|
|
|
* Thu Sep 03 2009 Harald Hoyer <harald@redhat.com> 001-2
|
|
|
|
- fixed missing grep for md
|
|
|
|
- reorder cleanup
|
|
|
|
|
2009-09-02 13:58:47 +00:00
|
|
|
* Wed Sep 02 2009 Harald Hoyer <harald@redhat.com> 001-1
|
|
|
|
- version 001
|
|
|
|
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut/dracut;a=blob_plain;f=NEWS
|
2009-08-24 13:18:52 +00:00
|
|
|
|
2009-08-14 16:02:07 +00:00
|
|
|
* Fri Aug 14 2009 Harald Hoyer <harald@redhat.com> 0.9-1
|
|
|
|
- version 0.9
|
|
|
|
|
2009-08-06 15:13:34 +00:00
|
|
|
* Thu Aug 06 2009 Harald Hoyer <harald@redhat.com> 0.8-1
|
|
|
|
- version 0.8
|
2009-09-02 13:58:47 +00:00
|
|
|
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut/dracut;a=blob_plain;f=NEWS
|
2009-07-26 07:56:10 +00:00
|
|
|
|
2009-07-25 09:11:39 +00:00
|
|
|
* Fri Jul 24 2009 Harald Hoyer <harald@redhat.com> 0.7-1
|
|
|
|
- version 0.7
|
2009-09-02 13:58:47 +00:00
|
|
|
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut/dracut;a=blob_plain;f=NEWS
|
2009-07-25 09:11:39 +00:00
|
|
|
|
|
|
|
* Wed Jul 22 2009 Harald Hoyer <harald@redhat.com> 0.6-1
|
|
|
|
- version 0.6
|
2009-09-02 13:58:47 +00:00
|
|
|
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut/dracut;a=blob_plain;f=NEWS
|
2009-07-24 20:30:08 +00:00
|
|
|
|
2009-07-17 14:02:20 +00:00
|
|
|
* Fri Jul 17 2009 Harald Hoyer <harald@redhat.com> 0.5-1
|
|
|
|
- version 0.5
|
2009-09-02 13:58:47 +00:00
|
|
|
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut/dracut;a=blob_plain;f=NEWS
|
2009-07-17 14:02:20 +00:00
|
|
|
|
2009-07-04 08:08:11 +00:00
|
|
|
* Sat Jul 04 2009 Harald Hoyer <harald@redhat.com> 0.4-1
|
|
|
|
- version 0.4
|
2009-09-02 13:58:47 +00:00
|
|
|
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut/dracut;a=blob_plain;f=NEWS
|
2009-07-04 08:08:11 +00:00
|
|
|
|
2009-07-02 10:02:54 +00:00
|
|
|
* Thu Jul 02 2009 Harald Hoyer <harald@redhat.com> 0.3-1
|
|
|
|
- version 0.3
|
2009-09-02 13:58:47 +00:00
|
|
|
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut/dracut;a=blob_plain;f=NEWS
|
2009-07-02 10:02:54 +00:00
|
|
|
|
2009-07-01 20:24:30 +00:00
|
|
|
* Wed Jul 01 2009 Harald Hoyer <harald@redhat.com> 0.2-1
|
|
|
|
- version 0.2
|
|
|
|
|
|
|
|
* Fri Jun 19 2009 Harald Hoyer <harald@redhat.com> 0.1-1
|
|
|
|
- first release
|
|
|
|
|
|
|
|
* Thu Dec 18 2008 Jeremy Katz <katzj@redhat.com> - 0.0-1
|
|
|
|
- Initial build
|
|
|
|
|