From de19afb90255c5faf0e79a33587fc59d5749f58e Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Mon, 1 Jul 2024 15:21:28 +0200 Subject: [PATCH] overlay app-admin/sudo: Keep /etc/sudoers.d directory It seems to be randomly kept or removed during installation, and we need the directory when creating the SDK container. --- .../coreos-overlay/app-admin/sudo/sudo-1.9.17_p1.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/sudo/sudo-1.9.17_p1.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/sudo/sudo-1.9.17_p1.ebuild index 71a60c624d..42d0796ff6 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-admin/sudo/sudo-1.9.17_p1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/sudo/sudo-1.9.17_p1.ebuild @@ -243,6 +243,11 @@ src_install() { # Flatcar: Remove sudo.conf as it is shipped via baselayout rm "${ED}/etc/sudo.conf" || die + # Flatcar: Build system installs /etc/sudoers.d, let's make + # sure we keep having it. + # + # Upstream PR: https://github.com/gentoo/gentoo/pull/37397 + keepdir /etc/sudoers.d } pkg_postinst() {