xbps-src: introduce support for multiple chroot implementations.
Available implementations at common/chroot-style/*.sh. Each .sh script there implements a chroot style to be able to chroot and bind mount with multiple utilities. The current supported list: - uunshare (uses xbps-uunshare(8)) - uchroot (uses xbps-uchroot(8)) - proot (uses proot, see http://proot.me) The XBPS_CHROOT_CMD can be set in etc/conf to use a specific implementation, and XBPS_CHROOT_CMD_ARGS to pass in additional arguments to the cmd.
This commit is contained in:
parent
d99b4f720d
commit
c7f21fd595
5 changed files with 93 additions and 39 deletions
|
@ -88,3 +88,16 @@ XBPS_SUCMD="sudo /bin/sh -c"
|
|||
# override the global options defined above for the matching package.
|
||||
#
|
||||
#XBPS_PKG_OPTIONS_foo=opt,~opt2,opt3,~opt4
|
||||
|
||||
# [OPTIONAL]
|
||||
# Set the preferred chroot style. Available styles at common/chroot-style/*.sh:
|
||||
#
|
||||
# - uunshare (uses xbps-uunshare(8), user namespaces)
|
||||
# - uchroot (uses xbps-uchroot(8), namespaces, setgid)
|
||||
# - proot (uses proot, external, does not need special permissions)
|
||||
#
|
||||
# The order is already set as shown above, but can be overriden below.
|
||||
# Additional arguments to the chroot style can be passed in via XBPS_CHROOT_CMD_ARGS.
|
||||
#
|
||||
#XBPS_CHROOT_CMD=proot
|
||||
#XBPS_CHROOT_CMD_ARGS=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue