From f32e173f94545d8cd94bcedc6c77d849d74911cc 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.15_p5.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/sudo/sudo-1.9.15_p5.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/sudo/sudo-1.9.15_p5.ebuild index b97a63f7688..376fb5ea529 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-admin/sudo/sudo-1.9.15_p5.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/sudo/sudo-1.9.15_p5.ebuild @@ -240,6 +240,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() {