From e02684d54d3fc4b41228ad7315490161dc453d08 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 12 Jan 2012 17:48:32 +0100 Subject: [PATCH] New package: dracut-014. --- srcpkgs/dracut-network | 1 + srcpkgs/dracut/dracut-network.template | 15 +++++++++++++ srcpkgs/dracut/template | 29 ++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 120000 srcpkgs/dracut-network create mode 100644 srcpkgs/dracut/dracut-network.template create mode 100644 srcpkgs/dracut/template diff --git a/srcpkgs/dracut-network b/srcpkgs/dracut-network new file mode 120000 index 0000000000..b3ae25a9bd --- /dev/null +++ b/srcpkgs/dracut-network @@ -0,0 +1 @@ +dracut \ No newline at end of file diff --git a/srcpkgs/dracut/dracut-network.template b/srcpkgs/dracut/dracut-network.template new file mode 100644 index 0000000000..7983b654f8 --- /dev/null +++ b/srcpkgs/dracut/dracut-network.template @@ -0,0 +1,15 @@ +# Template file for 'dracut-network' +pkgname=dracut +short_desc="${short_desc} - network modules" +long_desc="${long_desc} + This package contains some modules to allow booting from network, such as + via ISCSI, NFS, etc." + +noarch=yes + +do_install() { + for f in 40network 90livenet 95fcoe 95iscsi \ + 95nbd 95nfs 95zfcp 95znet; do + vmove usr/lib/dracut/modules.d/${f} usr/lib/dracut/modules.d + done +} diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template new file mode 100644 index 0000000000..d39e42b040 --- /dev/null +++ b/srcpkgs/dracut/template @@ -0,0 +1,29 @@ +# Template file for 'dracut' +pkgname=dracut +version=014 +distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.xz" +build_style=gnu-makefile +make_build_args="sysconfdir=/etc" +make_install_args="sysconfdir=/etc" +short_desc="A new initramfs infrastructure" +maintainer="Juan RP " +checksum=8766a0eecd51b4bc6647e7870ba269dffbbbe21954984b23c77f21ce1fd034d1 +long_desc=" + Unlike existing initramfs, this is an attempt at having as little as possible + hard-coded into the initramfs as possible. The initramfs has (basically) one + purpose in life -- getting the rootfs mounted so that we can transition to the + real rootfs. This is all driven off of device availability. Therefore, instead + of scripts hard-coded to do various things, we depend on udev to create device + nodes for us and then when we have the rootfs's device node, we mount and + carry on. Having the root on MD, LVM2, LUKS is supported as well as NFS, + iSCSI, NBD and FCOE with dracut-network." + +noarch=yes +subpackages="dracut-network" +conf_files="/etc/dracut.conf" +make_dirs="/etc/dracut.conf.d 0755 root root" + +Add_dependency full busybox +Add_dependency build coreutils # cp -x +Add_dependency build libxslt +Add_dependency build docbook-xsl