Skip to content

Commit

Permalink
Explain prefix/root better in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Jackson committed Jan 12, 2024
1 parent 3213b09 commit 1b32e1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions mock/docs/site-defaults.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,9 @@
# Whether to use host's shadow-utils to provision users and groups in the
# buildroot, which we normally want to do because host shadow-utils are
# newer and more flexible than buildroot ones.However, there is an issue in shadow-utils
# where even using the --root option, the host config will "leak" into the chroot. This is not an
# issue if the configs are effectively the same between host and buildroot, but will cause
# problems if, for example, the host is configured to use FreeIPA-provided subids.
# where even using the --prefix (or, even --root if we did it that way) option, the host
# config will "leak" into the chroot. This is not an issue if the configs are
# effectively the same between host and buildroot, but will cause problems if, for
# example, the host is configured to use FreeIPA-provided subids.
# See https://github.com/shadow-maint/shadow/issues/897
# config_opts["use_host_shadow_utils"] = True
7 changes: 4 additions & 3 deletions mock/py/mockbuild/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,10 @@ def setup_default_config_opts():

config_opts["copy_host_users"] = []

# shadow-utils --root option does not play well with FreeIPA-provided
# subids. Using the shadow-utils inside the chroot works around this
# but this is a niche situation so it is not the default.
# shadow-utils --prefix and --root options do not play well with
# FreeIPA-provided subids. Using the shadow-utils inside the
# chroot works around this but this is a niche situation so it is
# not the default.
# Upstream issue https://github.com/shadow-maint/shadow/issues/897
config_opts["use_host_shadow_utils"] = True

Expand Down

0 comments on commit 1b32e1d

Please sign in to comment.