dracut: fixed kernel-hook-postrm and use abs path.

This commit is contained in:
Juan RP 2013-01-04 07:13:23 +01:00
parent 20c0b59c44
commit 0b751604b8
3 changed files with 5 additions and 16 deletions

View file

@ -1,10 +1,8 @@
# Template file for 'dracut-network'
depends="dracut>=$version"
#
depends="dracut>=${version}"
noarch=yes
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."
do_install() {
for f in 40network 90livenet 95fcoe 95iscsi \

View file

@ -7,7 +7,7 @@
PKGNAME="$1"
VERSION="$2"
if [ -f boot/initramfs-${VERSION}.img ]; then
rm -f boot/initramfs-${VERSION}.img
if [ -f /boot/initramfs-${VERSION}.img ]; then
rm -f /boot/initramfs-${VERSION}.img
fi
exit $?

View file

@ -1,7 +1,7 @@
# Template file for 'dracut'
pkgname=dracut
version=024
revision=4
revision=5
patch_args="-Np1"
build_style=gnu-makefile
make_build_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system"
@ -17,15 +17,6 @@ maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.xz"
checksum=d88dc31f326cd6064f7bdcf48a5985bbcfb829fd773b2c0ee93c4c6de86b9f32
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."
pre_build() {
# Remove the nonsense syncheck target.