Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: spec: remove uneeded sed's
......................................................................

spec: remove uneeded sed's

We have 3 sed command in spec file that are deprecated:

1. > # semanage is not present in the image and virt_use_nfs is on (see 
rhbz#642209)
   > # remove it from vdsmd startup script to avoid error
   > sed -i 's#/usr/sbin/semanage#/bin/true#' /etc/rc.d/init.d/vdsmd

We don't have semanage command anymore in /etc/rc.d/init.d/vdsmd and ovirt-node
these days provide semanage command.

2. > # libvirtd upstart job is already configured on rhevh
   > sed -i 's/ && start_libvirtd$//' /etc/rc.d/init.d/vdsmd

There is no start_libvirtd anymore in /etc/rc.d/init.d/vdsmd

3. > # chkconfig results (symlinks) cannnot be peristed
   > sed -i 's#/sbin/chkconfig \$srv off##' /etc/rc.d/init.d/vdsmd

No more /sbin/chkconfig $srv off in /etc/rc.d/init.d/vdsmd

Change-Id: I98ecf410204f081b5cea730a87b2aca8786e3a87
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1088218
Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com>
---
M ovirt-node-plugin-vdsm.spec.in
1 file changed, 0 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node-plugin-vdsm 
refs/changes/99/26899/1

diff --git a/ovirt-node-plugin-vdsm.spec.in b/ovirt-node-plugin-vdsm.spec.in
index fc532f3..421e720 100644
--- a/ovirt-node-plugin-vdsm.spec.in
+++ b/ovirt-node-plugin-vdsm.spec.in
@@ -50,16 +50,6 @@
 make install DESTDIR=%{buildroot}
 
 %post
-# semanage is not present in the image and virt_use_nfs is on (see rhbz#642209)
-# remove it from vdsmd startup script to avoid error
-sed -i 's#/usr/sbin/semanage#/bin/true#' /etc/rc.d/init.d/vdsmd
-
-# libvirtd upstart job is already configured on rhevh
-sed -i 's/ && start_libvirtd$//' /etc/rc.d/init.d/vdsmd
-
-# chkconfig results (symlinks) cannnot be peristed
-sed -i 's#/sbin/chkconfig \$srv off##' /etc/rc.d/init.d/vdsmd
-
 # reserve vdsm port 54321
 augtool << \EOF_sysctl
 set /files/etc/sysctl.conf/net.ipv4.ip_local_reserved_ports 54321


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I98ecf410204f081b5cea730a87b2aca8786e3a87
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node-plugin-vdsm
Gerrit-Branch: node-3.0
Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to