]> xenbits.xensource.com Git - libvirt.git/commit
ci: Run $(CI_PREPARE_SCRIPT) as root
authorAndrea Bolognani <abologna@redhat.com>
Thu, 15 Aug 2019 13:37:38 +0000 (15:37 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 21 Aug 2019 16:58:31 +0000 (18:58 +0200)
commit4c39e54ca9cae248403477496e739ee103f7fe3f
tree54e1c9eb8fff0b36075d658fe7a57d76e2612845
parent2ce3274ea5f8f4f21547ceb98f236812c4f72d94
ci: Run $(CI_PREPARE_SCRIPT) as root

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>
ci/Makefile
ci/prepare.sh