mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
4c39e54ca9
In order for the prepare script to be really useful, it needs to be able to perform privileged operations such as installing additional packages or setting up custom mount points. In order to achieve that, we now run the container as root, run the prepare script with full privilege, and only then switch to the unprivileged account with sudo. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
14 lines
422 B
Bash
14 lines
422 B
Bash
# This script is used to prepare the environment that will be used
|
|
# to build libvirt inside the container.
|
|
#
|
|
# You can customize it to your liking, or alternatively use a
|
|
# completely different script by passing
|
|
#
|
|
# CI_PREPARE_SCRIPT=/path/to/your/prepare/script
|
|
#
|
|
# to make.
|
|
#
|
|
# Note that this script will have root privileges inside the
|
|
# container, so it can be used for things like installing additional
|
|
# packages.
|