[node-patches] Change in ovirt-node[master]: recipe: Update RHEVH7 post

fabiand at fedoraproject.org fabiand at fedoraproject.org
Wed Feb 26 18:42:30 UTC 2014


Fabian Deutsch has uploaded a new change for review.

Change subject: recipe: Update RHEVH7 post
......................................................................

recipe: Update RHEVH7 post

Change-Id: I25651fabe12ad3c73bdcec651345877943d83fbe
Signed-off-by: Fabian Deutsch <fabiand at redhat.com>
---
D recipe/rhevh7-post.ks
A recipe/rhevh7-post.ks
2 files changed, 43 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/07/25107/1

diff --git a/recipe/rhevh7-post.ks b/recipe/rhevh7-post.ks
deleted file mode 120000
index 0c3a682..0000000
--- a/recipe/rhevh7-post.ks
+++ /dev/null
@@ -1 +0,0 @@
-rhevh6-post.ks
\ No newline at end of file
diff --git a/recipe/rhevh7-post.ks b/recipe/rhevh7-post.ks
new file mode 100644
index 0000000..e511484
--- /dev/null
+++ b/recipe/rhevh7-post.ks
@@ -0,0 +1,43 @@
+%include version.ks
+
+# add RHEV-H rwtab locations
+mkdir -p /rhev
+cat > /etc/rwtab.d/rhev << EOF_RWTAB_RHEVH
+dirs    /var/db
+EOF_RWTAB_RHEVH
+
+# minimal lsb_release for bz#549147
+cat > /usr/bin/lsb_release <<\EOF_LSB
+#!/bin/sh
+if [ "$1" = "-r" ]; then
+    printf "Release:\t$(cat /etc/rhev-hypervisor-release | awk '{print $7}')\n"
+else
+    echo RedHatEnterpriseVirtualizationHypervisor
+fi
+EOF_LSB
+chmod +x /usr/bin/lsb_release
+
+# CPE name rhbz#593463
+MAJORVER=${VERSION%%.*}
+MINORVER=${VERSION##*.}
+cat > /etc/system-release-cpe <<EOF_CPE
+cpe:/o:redhat:enterprise_linux:${MAJORVER}:update${MINORVER}:hypervisor${TYPE}
+EOF_CPE
+
+# remove errors from /sbin/dhclient-script
+DHSCRIPT=/sbin/dhclient-script
+sed -i 's/mv /cp -p /g'  $DHSCRIPT
+sed -i '/rm -f.*${interface}/d' $DHSCRIPT
+sed -i '/rm -f \/etc\/localtime/d' $DHSCRIPT
+sed -i '/rm -f \/etc\/ntp.conf/d' $DHSCRIPT
+sed -i '/rm -f \/etc\/yp.conf/d' $DHSCRIPT
+
+# rhbz#734478 add virt-who (*.py are removed in rhevh image)
+cat > /usr/bin/virt-who <<EOF_virt_who
+#!/bin/sh
+exec /usr/bin/python /usr/share/virt-who/virt-who.pyc "\$@"
+EOF_virt_who
+
+# set maxlogins to 3
+echo "*        -       maxlogins      3" >> /etc/security/limits.conf
+


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I25651fabe12ad3c73bdcec651345877943d83fbe
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list