New patch submitted by Federico Simoncelli (fsimonce(a)redhat.com)
You can review this change at:
http://gerrit.usersys.redhat.com/911
commit b3f9679f6866a091e3f65a406a73a0ca9121db2d
Author: Federico Simoncelli <fsimonce(a)redhat.com>
Date: Wed Sep 7 12:12:57 2011 +0000
Update the rpm pre scriptlet
Change-Id: I8effe06b95b008eafff63a75a16f0518788bd9af
diff --git a/vdsm.spec.in b/vdsm.spec.in
index f1a3473..d2a7411 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -63,8 +63,9 @@ make check
%{__rm} -rf %{buildroot}
%pre
-getent passwd vdsm > /dev/null || /usr/sbin/useradd -u 36 -g kvm -o -r vdsm -c
"RHEV node manager" -d / -s /sbin/nologin
-/usr/sbin/usermod -a -G qemu vdsm
+useradd -r -u 36 -g kvm -d /var/lib/vdsm \
+ -s /sbin/nologin -c "Node Virtualization Manager" vdsm
+usermod -a -G qemu vdsm
%post
tmp_sudoers=$(mktemp)