summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2019-11-25 17:32:33 +0100
committerJonathan Bauer2019-11-25 17:32:33 +0100
commit271e1dddd506aaea49dd76369ea1298dc00d2524 (patch)
treed36d1d9239edc0fd6061c85ca3274165864a74a2
parent[idleaction] Remove leading zeros in secsToTime (diff)
downloadmltk-271e1dddd506aaea49dd76369ea1298dc00d2524.tar.gz
mltk-271e1dddd506aaea49dd76369ea1298dc00d2524.tar.xz
mltk-271e1dddd506aaea49dd76369ea1298dc00d2524.zip
[vbox-src] add vboxusers group on build-time
this makes sure the vboxusers group is available during boot and that the vbox's udev rules will not trigger before the group is created. If they did, /dev/vboxusb would be owned by root:root, which would prevent users from the group vboxusers to access it and would lead to the first user session to not see USB devices.
-rw-r--r--core/modules/vbox-src/module.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/modules/vbox-src/module.build b/core/modules/vbox-src/module.build
index 4cd80c8a..5f1a24ea 100644
--- a/core/modules/vbox-src/module.build
+++ b/core/modules/vbox-src/module.build
@@ -84,6 +84,8 @@ build() {
chown -R root:root "${VBOX_EXTPACK_DIR}" || \
perror "Failed to chown '${VBOX_EXTPACK_DIR}' to root:root."
+ add_group "vboxusers"
+
# od binary
local OD_BIN="$(which od 2>/dev/null)"
if [ -n "$OD_BIN" -a -e "$OD_BIN" ]; then