[node-patches] Change in ovirt-node[master]: Don't glob the initramfs, use explicit kernel versions

rbarry at redhat.com rbarry at redhat.com
Fri Jan 16 14:44:17 UTC 2015


Ryan Barry has uploaded a new change for review.

Change subject: Don't glob the initramfs, use explicit kernel versions
......................................................................

Don't glob the initramfs, use explicit kernel versions

We already build it with an explicit kernel version. Copy it out
with that as well, in case there are multiple initrds in /boot
for some reason

Change-Id: Id676ce0fb22ec7f8155b6814750820659a7ead6f
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M recipe/common-nochroot.ks
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/87/36987/1

diff --git a/recipe/common-nochroot.ks b/recipe/common-nochroot.ks
index 25e7b22..34aad74 100644
--- a/recipe/common-nochroot.ks
+++ b/recipe/common-nochroot.ks
@@ -2,7 +2,9 @@
 %include version.ks
 
 echo "Copying the initrd out..."
-cp $INSTALL_ROOT/boot/*.img $LIVE_ROOT/isolinux/initrd0.img
+cp $INSTALL_ROOT/boot/initramfs-\
+$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}" kernel).img \
+    $LIVE_ROOT/isolinux/initrd0.img
 
 if [ -f "ovirt-authorized_keys" ]; then
   echo "Adding authorized_keys to Image"


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id676ce0fb22ec7f8155b6814750820659a7ead6f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list