dracut: fixed kernel-hook-postrm and use abs path.
This commit is contained in:
parent
20c0b59c44
commit
0b751604b8
3 changed files with 5 additions and 16 deletions
|
@ -1,10 +1,8 @@
|
||||||
# Template file for 'dracut-network'
|
# Template file for 'dracut-network'
|
||||||
depends="dracut>=$version"
|
#
|
||||||
|
depends="dracut>=${version}"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
short_desc="${short_desc} - network modules"
|
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() {
|
do_install() {
|
||||||
for f in 40network 90livenet 95fcoe 95iscsi \
|
for f in 40network 90livenet 95fcoe 95iscsi \
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
PKGNAME="$1"
|
PKGNAME="$1"
|
||||||
VERSION="$2"
|
VERSION="$2"
|
||||||
|
|
||||||
if [ -f boot/initramfs-${VERSION}.img ]; then
|
if [ -f /boot/initramfs-${VERSION}.img ]; then
|
||||||
rm -f boot/initramfs-${VERSION}.img
|
rm -f /boot/initramfs-${VERSION}.img
|
||||||
fi
|
fi
|
||||||
exit $?
|
exit $?
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'dracut'
|
# Template file for 'dracut'
|
||||||
pkgname=dracut
|
pkgname=dracut
|
||||||
version=024
|
version=024
|
||||||
revision=4
|
revision=5
|
||||||
patch_args="-Np1"
|
patch_args="-Np1"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_build_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system"
|
make_build_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system"
|
||||||
|
@ -17,15 +17,6 @@ maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.xz"
|
distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.xz"
|
||||||
checksum=d88dc31f326cd6064f7bdcf48a5985bbcfb829fd773b2c0ee93c4c6de86b9f32
|
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() {
|
pre_build() {
|
||||||
# Remove the nonsense syncheck target.
|
# Remove the nonsense syncheck target.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue