[Ovirt-devel] [PATCH node-image] Only lock root account for production builds. For non-release builds leave it open
Perry Myers
pmyers at redhat.com
Fri Jan 30 00:50:18 UTC 2009
This makes it easier for developers to do work
Signed-off-by: Perry Myers <pmyers at redhat.com>
---
common-post.ks | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/common-post.ks b/common-post.ks
index ffc459c..08dd6c0 100644
--- a/common-post.ks
+++ b/common-post.ks
@@ -87,6 +87,9 @@ 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
-# By default, lock the root account. It is only unlocked after the
-# root password is set in the ovirt-config-password script.
-passwd -l root
+if rpm -q --qf '%{release}' ovirt-node | grep "0\..*" > /dev/null 2>&1 ; then
+ echo "Building in developer mode, leaving root account unlocked"
+else
+ echo "Building in production mode, locking root account"
+ passwd -l root
+fi
--
1.6.0.6
More information about the ovirt-devel
mailing list