[node-patches] Change in ovirt-node[master]: [DRAFT] init: Add /dev/initramfs for b/c

fabiand at fedoraproject.org fabiand at fedoraproject.org
Wed Feb 6 16:18:07 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: [DRAFT] init: Add /dev/initramfs for b/c
......................................................................

[DRAFT] init: Add /dev/initramfs for b/c

With Fedora 18 on /dev/.initramfs is moved to /run/initramfs, for
compatability reasons we are bind mounting /run/… to /dev/.….

rhbz#843734

Change-Id: Ie1f5647e80699e405b539544294927ffa5bd942d
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-init-functions.sh
1 file changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/16/11816/1

diff --git a/scripts/ovirt-init-functions.sh b/scripts/ovirt-init-functions.sh
index 76f9664..d8abec1 100644
--- a/scripts/ovirt-init-functions.sh
+++ b/scripts/ovirt-init-functions.sh
@@ -883,7 +883,13 @@
         start_log
     fi
 
-    # link to the kernel image for kdump
+    if [[ -e /run/initramfs ]]; then
+        log "bind omunting /run/initramfs to /dev/.initramfs for compatability"
+        mkdir /dev/.initramfs
+        mount -obind /run/initramfs /dev/.initramfs
+    fi
+
+    log "link to the kernel image for kdump"
     chcon -t boot_t /boot-kdump
     if is_booted_from_local_disk; then
         mount_boot


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

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