diff --git a/sys-apps/systemd-utils/files/systemd-260-kernel-install.patch b/sys-apps/systemd-utils/files/systemd-260-kernel-install.patch new file mode 100644 index 0000000000000..7c41237373703 --- /dev/null +++ b/sys-apps/systemd-utils/files/systemd-260-kernel-install.patch @@ -0,0 +1,30 @@ +https://bugs.gentoo.org/971388 +https://github.com/systemd/systemd/pull/41225 + +From 54db03334813a16721fa96c59b884f1591c758b5 Mon Sep 17 00:00:00 2001 +From: Robin Ebert +Date: Fri, 20 Mar 2026 13:32:04 +0100 +Subject: [PATCH] kernel-install: fix assert in context_copy + +(cherry picked from commit 55e7dc5ce4999ba9f01499dccdeba0235a86aaa4) +--- + src/kernel-install/kernel-install.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/kernel-install/kernel-install.c b/src/kernel-install/kernel-install.c +index a38dcaab8b556..618fa746c9bed 100644 +--- a/src/kernel-install/kernel-install.c ++++ b/src/kernel-install/kernel-install.c +@@ -152,10 +152,10 @@ static int context_copy(const Context *source, Context *ret) { + + assert(source); + assert(ret); +- assert(source->rfd >= 0 || source->rfd == AT_FDCWD); ++ assert(source->rfd >= 0 || source->rfd == AT_FDCWD || source->rfd == XAT_FDROOT); + + _cleanup_(context_done) Context copy = (Context) { +- .rfd = AT_FDCWD, ++ .rfd = source->rfd, + .action = source->action, + .machine_id = source->machine_id, + .machine_id_is_random = source->machine_id_is_random, diff --git a/sys-apps/systemd-utils/systemd-utils-260.ebuild b/sys-apps/systemd-utils/systemd-utils-260-r1.ebuild similarity index 99% rename from sys-apps/systemd-utils/systemd-utils-260.ebuild rename to sys-apps/systemd-utils/systemd-utils-260-r1.ebuild index 6072f1cd459dc..c9f3cb92cab31 100644 --- a/sys-apps/systemd-utils/systemd-utils-260.ebuild +++ b/sys-apps/systemd-utils/systemd-utils-260-r1.ebuild @@ -107,6 +107,7 @@ CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED PATCHES=( "${FILESDIR}/systemd-260-mips.patch" + "${FILESDIR}/systemd-260-kernel-install.patch" ) pkg_setup() {