summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2024-11-07 20:07:42 -0500
committerMike Gilbert <floppym@gentoo.org>2024-11-07 20:12:57 -0500
commitba2f5edc7666b74128c74ae077cf062d1b120d47 (patch)
tree6fa0051e7de2f797b0f7c48feca18dd55336480d
parentnet-im/telegram-desktop: add 5.7.2, drop 5.7.1 (diff)
downloadgentoo-ba2f5edc7666b74128c74ae077cf062d1b120d47.tar.gz
gentoo-ba2f5edc7666b74128c74ae077cf062d1b120d47.tar.bz2
gentoo-ba2f5edc7666b74128c74ae077cf062d1b120d47.zip
sys-kernel/dracut: fix up conflicting directories/symlinks
Closes: https://bugs.gentoo.org/943007 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--sys-kernel/dracut/dracut-105-r1.ebuild (renamed from sys-kernel/dracut/dracut-105.ebuild)16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-kernel/dracut/dracut-105.ebuild b/sys-kernel/dracut/dracut-105-r1.ebuild
index b6668b2572f4..19082b840ad0 100644
--- a/sys-kernel/dracut/dracut-105.ebuild
+++ b/sys-kernel/dracut/dracut-105-r1.ebuild
@@ -155,6 +155,22 @@ src_install() {
dodoc dracut.html
}
+pkg_preinst() {
+ # Remove directory/symlink conflicts
+ # https://bugs.gentoo.org/943007
+ local module backup
+ for module in "${EROOT}"/usr/lib/dracut/modules.d/{80test,80test-makeroot,80test-root}; do
+ if [[ ! -L ${module} && -d ${module} ]]; then
+ rm -rv "${module}" || die
+ fi
+ for backup in "${module}".backup.*; do
+ if [[ -L ${backup} ]]; then
+ rm -v "${backup}" || die
+ fi
+ done
+ done
+}
+
pkg_postinst() {
optfeature "Networking support" net-misc/networkmanager
optfeature "Legacy networking support" net-misc/curl "net-misc/dhcp[client]" \