[node-patches] Change in ovirt-node[master]: init: Symlink kernel into /boot for libguestfs

fabiand at fedoraproject.org fabiand at fedoraproject.org
Tue Dec 10 13:16:12 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: init: Symlink kernel into /boot for libguestfs
......................................................................

init: Symlink kernel into /boot for libguestfs

Change-Id: I59cbbeabe1a91eef8cc571f553100dd600627928
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1033508
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/44/22244/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 4834dd5..36f50e3 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -1326,6 +1326,15 @@
         # Restart jorunald to pick up /var/log/journal
         service systemd-journald restart
 
+        # Add symlink for libguestfs
+        if [ -f /dev/.initramfs/live/vmlinuz0 ];
+        then
+            ln -s /dev/.initramfs/live/vmlinuz0 /boot/vmlinuz-$(uname -r);
+        elif [ -f /dev/.initramfs/live/isolinux/vmlinuz0 ];
+        then
+            ln -s /dev/.initramfs/live/isolinux/vmlinuz0 /boot/vmlinuz-$(uname -r);
+        fi
+
         BACKUP=$(mktemp)
         ISSUE=/etc/issue
         ISSUE_NET=/etc/issue.net


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I59cbbeabe1a91eef8cc571f553100dd600627928
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