dracut: avoid double copies in dracut-uefi subpackage
This commit is contained in:
parent
46371e7636
commit
d1c32883df
1 changed files with 6 additions and 12 deletions
|
@ -28,7 +28,6 @@ esac
|
|||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686*|x86_64*) # archs supported by dracut for EFI bundle
|
||||
_efi_bundle=1
|
||||
subpackages+=" dracut-uefi"
|
||||
;;
|
||||
esac
|
||||
|
@ -49,12 +48,6 @@ post_install() {
|
|||
vinstall ${FILESDIR}/kernel-hook-postinst 755 etc/kernel.d/post-install 20-dracut
|
||||
vinstall ${FILESDIR}/kernel-hook-postrm 755 etc/kernel.d/post-remove 20-dracut
|
||||
|
||||
if [ "${_efi_bundle}" ]; then
|
||||
vinstall ${FILESDIR}/dracut-uefi-hook.confd 644 etc/default dracut-uefi-hook
|
||||
vinstall ${FILESDIR}/kernel-uefi-hook-postinst 755 etc/kernel.d/post-install 20-dracut-uefi
|
||||
vinstall ${FILESDIR}/kernel-uefi-hook-postrm 755 etc/kernel.d/post-remove 20-dracut-uefi
|
||||
fi
|
||||
|
||||
# We don't need the systemd stuff.
|
||||
rm -rf ${DESTDIR}/usr/lib/dracut/modules.d/*systemd*
|
||||
rm -f ${DESTDIR}/usr/share/man/man8/*.service.*
|
||||
|
@ -62,7 +55,7 @@ post_install() {
|
|||
}
|
||||
|
||||
dracut-network_package() {
|
||||
depends="dhclient dracut-${version}_${revision}"
|
||||
depends="dhclient ${sourcepkg}-${version}_${revision}"
|
||||
short_desc+=" - network modules"
|
||||
archs=noarch
|
||||
pkg_install() {
|
||||
|
@ -74,12 +67,13 @@ dracut-network_package() {
|
|||
}
|
||||
|
||||
dracut-uefi_package() {
|
||||
depends="binutils gummiboot dracut-${version}_${revision}"
|
||||
depends="binutils gummiboot ${sourcepkg}-${version}_${revision}"
|
||||
short_desc+=" - UEFI bundle hook"
|
||||
conf_files="/etc/default/dracut-uefi-hook"
|
||||
|
||||
pkg_install() {
|
||||
vmove etc/kernel.d/post-install/20-dracut-uefi
|
||||
vmove etc/kernel.d/post-remove/20-dracut-uefi
|
||||
vmove etc/default/dracut-uefi-hook
|
||||
vinstall ${FILESDIR}/dracut-uefi-hook.confd 644 etc/default dracut-uefi-hook
|
||||
vinstall ${FILESDIR}/kernel-uefi-hook-postinst 755 etc/kernel.d/post-install 20-dracut-uefi
|
||||
vinstall ${FILESDIR}/kernel-uefi-hook-postrm 755 etc/kernel.d/post-remove 20-dracut-uefi
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue