diff --git a/srcpkgs/dracut/dracut-network.template b/srcpkgs/dracut/dracut-network.template index 797ee16d4e8..66ce891d431 100644 --- a/srcpkgs/dracut/dracut-network.template +++ b/srcpkgs/dracut/dracut-network.template @@ -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 \ diff --git a/srcpkgs/dracut/files/kernel-hook-postrm b/srcpkgs/dracut/files/kernel-hook-postrm index f99458a4bfa..f35d076193b 100644 --- a/srcpkgs/dracut/files/kernel-hook-postrm +++ b/srcpkgs/dracut/files/kernel-hook-postrm @@ -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 $? diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template index 09aaca85804..6426ac22752 100644 --- a/srcpkgs/dracut/template +++ b/srcpkgs/dracut/template @@ -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 " 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.