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.
This commit is contained in:
Krzesimir Nowak 2024-07-01 15:21:28 +02:00
parent 6605a25cc8
commit de19afb902

View File

@ -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() {