public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/virtualbox-guest-additions] alext-upd-to-7.2.12: Add sysusers.d config file to allow rpm to create users/groups automatically
Date: Sun, 12 Jul 2026 20:58:22 GMT [thread overview]
Message-ID: <178388990270.1.9016033730464048960.rpms-virtualbox-guest-additions-3a003426099f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/virtualbox-guest-additions
Branch : alext-upd-to-7.2.12
Commit : 3a003426099fa1405d20ad7529f2d2c5ee29f946
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date : 2025-01-29T09:19:31+01:00
Stats : +16/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/virtualbox-guest-additions/c/3a003426099fa1405d20ad7529f2d2c5ee29f946?branch=alext-upd-to-7.2.12
Log:
Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
---
diff --git a/virtualbox-guest-additions.spec b/virtualbox-guest-additions.spec
index 5724538..2a591b5 100644
--- a/virtualbox-guest-additions.spec
+++ b/virtualbox-guest-additions.spec
@@ -1,6 +1,6 @@
Name: virtualbox-guest-additions
Version: 7.1.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: VirtualBox Guest Additions
License: GPL-3.0-only AND (GPL-3.0-only OR CDDL-1.0)
URL: https://www.virtualbox.org/wiki/VirtualBox
@@ -85,6 +85,15 @@ rm -r src/libs/libvorbis-1.3.*/
rm -r src/libs/libogg-1.3.*/
rm -r src/libs/libtpms-0.9.*/
+# Create a sysusers.d config file
+cat >virtualbox-guest-additions.sysusers.conf <<EOF
+# Group "vboxsf" for Shared Folders access.
+# All users which want to access the auto-mounted Shared Folders
+# have to be added to this group.
+g vboxsf -
+u vboxadd -:1 - /var/run/vboxadd -
+EOF
+
%build
./configure --only-additions --disable-kmods
@@ -149,14 +158,9 @@ install -p -m 0644 -D %{SOURCE1} %{buildroot}%{_unitdir}/vboxservice.service
install -p -m 0644 -D %{SOURCE3} %{buildroot}%{_udevrulesdir}/60-vboxguest.rules
install -p -m 0644 -D %{SOURCE4} %{buildroot}%{_unitdir}/vboxclient.service
+install -m0644 -D virtualbox-guest-additions.sysusers.conf %{buildroot}%{_sysusersdir}/virtualbox-guest-additions.conf
+
-%pre
-# Add a group "vboxsf" for Shared Folders access
-# All users which want to access the auto-mounted Shared Folders have to
-# be added to this group.
-getent group vboxsf >/dev/null || groupadd -r vboxsf 2>&1
-getent passwd vboxadd >/dev/null || \
- useradd -r -g 1 -d /var/run/vboxadd -s /sbin/nologin vboxadd 2>&1
%post
%systemd_post vboxclient.service
@@ -186,9 +190,13 @@ getent passwd vboxadd >/dev/null || \
%{_unitdir}/vboxclient.service
%{_unitdir}/vboxservice.service
%{_udevrulesdir}/60-vboxguest.rules
+%{_sysusersdir}/virtualbox-guest-additions.conf
%changelog
+* Wed Jan 29 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 7.1.4-3
+- Add sysusers.d config file to allow rpm to create users/groups automatically
+
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
reply other threads:[~2026-07-12 20:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178388990270.1.9016033730464048960.rpms-virtualbox-guest-additions-3a003426099f@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox