mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 00:30:18 +00:00
ci: add the root user to the libvirt group
When starting a minikube VM, there are always warning messages like this: X libvirt group membership check failed: user is not a member of the appropriate libvirt group The CI jobs run as root, so minikube works just fine. By adding the root user to the libvirt group, the warning is hopefully removed. Note that the libvirt group may not exist yet, as the packages will get installed in a later stage. This change also adds a check to create the libvirt group in case it is missing. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
f129719f18
commit
c90023ad5d
@ -80,6 +80,10 @@ set -x
|
|||||||
|
|
||||||
dnf -y install git podman make
|
dnf -y install git podman make
|
||||||
|
|
||||||
|
# minikube wants the user (everything runs as root) to be in the libvirt group
|
||||||
|
getent group libvirt || groupadd --system libvirt
|
||||||
|
usermod --append --groups libvirt root
|
||||||
|
|
||||||
# if --history is passed, don't pass --depth=1
|
# if --history is passed, don't pass --depth=1
|
||||||
depth='--depth=1'
|
depth='--depth=1'
|
||||||
if [[ "${history}" == 'yes' ]]
|
if [[ "${history}" == 'yes' ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user