summaryrefslogtreecommitdiffstats
path: root/core/modules/libvirt-src/module.build
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-01 15:29:11 +0100
committerSimon Rettberg2024-02-01 15:29:11 +0100
commit0bd31409c2c1b4bc76198fee8202f7a594aa49a0 (patch)
tree5c51bcd9c5e2761314529804a2ce16e9184769de /core/modules/libvirt-src/module.build
parent[vbox-src] Add vboxusers at build time, add demo to group (diff)
downloadmltk-0bd31409c2c1b4bc76198fee8202f7a594aa49a0.tar.gz
mltk-0bd31409c2c1b4bc76198fee8202f7a594aa49a0.tar.xz
mltk-0bd31409c2c1b4bc76198fee8202f7a594aa49a0.zip
[libvirt-src/libvirt] Add demo to groups at build time, not run time
Diffstat (limited to 'core/modules/libvirt-src/module.build')
-rw-r--r--core/modules/libvirt-src/module.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/modules/libvirt-src/module.build b/core/modules/libvirt-src/module.build
index b818b6a5..fd22d2a4 100644
--- a/core/modules/libvirt-src/module.build
+++ b/core/modules/libvirt-src/module.build
@@ -12,8 +12,13 @@ module_init() {
groupadd --system "${LIBVIRT_QEMU_GRP}"
groupadd --system "${LIBVIRT_QEMU_USR}"
groupadd --system "${LIBVIRT_PTHR_GRP}"
- useradd --gid "${LIBVIRT_QEMU_GRP}" --groups "${LIBVIRT_QEMU_USR},${LIBVIRT_PTHR_GRP},${LIBVIRT_STPM_GRP}" --system \
+ useradd --gid "${LIBVIRT_QEMU_GRP}" --groups "${LIBVIRT_QEMU_USR},${LIBVIRT_PTHR_GRP},${LIBVIRT_STPM_GRP}" \
+ --system \
--no-create-home --home-dir "/var/lib/libvirt" "${LIBVIRT_QEMU_USR}"
+ local grp
+ for grp in libvirt-passthrough libvirt-tpm dialout; do
+ add_to_group demo "$grp" || perror "Could not add 'demo' to group '$grp'"
+ done
}
fetch_source() {