Darryl L. Pierce
2009-Jan-22 21:43 UTC
[Ovirt-devel] [PATCH node-image] Fixes errors in /sbin/dhclient-script.
Files are mv'd and rm'd that are bindmounted. This patch replaces the offending mv's and rm's. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- common-post.ks | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/common-post.ks b/common-post.ks index 151cc95..c2cb6da 100644 --- a/common-post.ks +++ b/common-post.ks @@ -78,3 +78,8 @@ cat > /etc/sysconfig/iptables << \EOF -A FORWARD -m physdev ! --physdev-is-bridged -j REJECT --reject-with icmp-host-prohibited COMMIT EOF + +# remove errors from /sbin/dhclient-script +DHSCRIPT=/sbin/dhclient-script +sed -i 's/mv/cp -a/g' $DHSCRIPT +sed -i 's/rm.*rscf//g' $DHSCRIPT -- 1.6.0.6
Darryl L. Pierce
2009-Jan-22 21:58 UTC
[Ovirt-devel] [PATCH node-image] Fixes errors in /sbin/dhclient-script.
All instances of "mv" are replaced by "cp -a". Four specific
instances
of rm are removed entirely.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
common-post.ks | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/common-post.ks b/common-post.ks
index 151cc95..826a82f 100644
--- a/common-post.ks
+++ b/common-post.ks
@@ -78,3 +78,11 @@ cat > /etc/sysconfig/iptables << \EOF
-A FORWARD -m physdev ! --physdev-is-bridged -j REJECT --reject-with
icmp-host-prohibited
COMMIT
EOF
+
+# remove errors from /sbin/dhclient-script
+DHSCRIPT=/sbin/dhclient-script
+sed -i 's/mv/cp -a/g' $DHSCRIPT
+sed -i 's/rm -f.*${interface}//' $DHSCRIPT
+sed -i 's/rm -f \/etc\/localtime//' $DHSCRIPT
+sed -i 's/rm -f \/etc\/ntp.conf//' $DHSCRIPT
+sed -i 's/rm -f \/etc\/yp.conf//' $DHSCRIPT
--
1.6.0.6