Skip to content

Commit

Permalink
overlay app-admin/sudo: Keep /etc/sudoers.d directory
Browse files Browse the repository at this point in the history
It seems to be randomly kept or removed during installation, and we
need the directory when creating the SDK container.
  • Loading branch information
krnowak committed Sep 3, 2024
1 parent 90b9e11 commit d646048
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d646048

Please sign in to comment.