Juan Hernandez has uploaded a new change for review.

Change subject: packaging: Create vdsm user and kvm group (#847833)
......................................................................

packaging: Create vdsm user and kvm group (#847833)

https://bugzilla.redhat.com/847833

The vdsm user and kvm group used to be created by the ovirt-engine
package before the changes I did to support Fedora 17. That was a
mistake. This patch brings that back.

Change-Id: I8cca5a00df645c375e2c5a0f30e4bb47853cc22b
Signed-off-by: Juan Hernandez <[email protected]>
---
M packaging/fedora/spec/ovirt-engine.spec.in
1 file changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/47/7247/1

diff --git a/packaging/fedora/spec/ovirt-engine.spec.in 
b/packaging/fedora/spec/ovirt-engine.spec.in
index 84761c6..69cda6e 100644
--- a/packaging/fedora/spec/ovirt-engine.spec.in
+++ b/packaging/fedora/spec/ovirt-engine.spec.in
@@ -31,6 +31,15 @@
 /usr/bin/getent group %{engine_group} >/dev/null || /usr/sbin/groupadd -r 
%{engine_group}; \
 /usr/bin/getent passwd %{engine_user} >/dev/null || /usr/sbin/useradd -c 
"%{user_description}" -u %{engine_uid} -g %{engine_group} -M -d %{engine_state} 
%{engine_user}
 
+# The name of the VDSM user and group:
+%global vdsm_user vdsm
+%global vdsm_group kvm
+
+# Macro to create the VDSM user:
+%global create_vdsm_user \
+/usr/bin/getent group %{vdsm_group} >/dev/null || /usr/sbin/groupadd -r 
%{vdsm_group}; \
+/usr/bin/getent passwd %{vdsm_user} >/dev/null || /usr/sbin/useradd -r -u 36 
-g %{vdsm_group} -s /sbin/nologin -c "Node Virtualization Manager" %{vdsm_user}
+
 %global make_common_opts \\\
        -j1 \\\
        PACKAGE_NAME=%{name} \\\
@@ -565,6 +574,10 @@
 %create_engine_user
 
 
+%pre setup
+%create_vdsm_user
+
+
 %files
 
 # The main package owns most of the directories:


--
To view, visit http://gerrit.ovirt.org/7247
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8cca5a00df645c375e2c5a0f30e4bb47853cc22b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to