[node-patches] Change in ovirt-node[master]: Remove $package-release file before creating it

wenyi at linux.vnet.ibm.com wenyi at linux.vnet.ibm.com
Tue Jul 23 01:18:12 UTC 2013


Wenyi Gao has uploaded a new change for review.

Change subject: Remove $package-release file before creating it
......................................................................

Remove $package-release file before creating it

When build the iso using autobuild.sh under ovirt-ndoe,
the package name will be ovirt-node-image. But in the
recipe/ovirt19-post.ks, the command:
ln -s /etc/system-release /etc/ovirt-node-image-release
creates link file ovirt-node-images-release that refers to
the /etc/system-release.

So this will cause both /etc/ovirt-ndoe-image-release and
/etc/system-release are link files and they refer to each other.

This patch remove the $package-release file anyway to avoid
refer to each.

Change-Id: I6da35c6a20de242d5c0c66ea06fc4edc07369b50
Signed-off-by: Wenyi Gao <wenyi at linux.vnet.ibm.com>
---
M recipe/common-nochroot.ks
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/32/17232/1

diff --git a/recipe/common-nochroot.ks b/recipe/common-nochroot.ks
index 9ce434c..77ec58e 100644
--- a/recipe/common-nochroot.ks
+++ b/recipe/common-nochroot.ks
@@ -78,6 +78,7 @@
 cp $LIVE_ROOT/isolinux/version $INSTALL_ROOT/etc/default/
 
 # overwrite user visible banners with the image versioning info
+rm -f $INSTALL_ROOT/etc/$PACKAGE-release
 cat > $INSTALL_ROOT/etc/$PACKAGE-release <<EOF
 $PRODUCT release $VERSION ($RELEASE)
 EOF


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6da35c6a20de242d5c0c66ea06fc4edc07369b50
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Wenyi Gao <wenyi at linux.vnet.ibm.com>



More information about the node-patches mailing list