From d54cad784b0978f18059762174c6dcc8724c0fb4 Mon Sep 17 00:00:00 2001 From: Edouard Bourguignon Date: Thu, 14 May 2015 16:29:58 +0200 Subject: [PATCH] gh-7: use blkid to find the context CD Also for http://dev.opennebula.org tickets #3749 and #3365 --- base/etc/init.d/vmcontext | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/etc/init.d/vmcontext b/base/etc/init.d/vmcontext index 63ef1d5..8ba3fcc 100755 --- a/base/etc/init.d/vmcontext +++ b/base/etc/init.d/vmcontext @@ -52,7 +52,8 @@ function execute_scripts { case "$1" in "start") - if [ -e "/dev/disk/by-label/CONTEXT" ]; then + CONTEXT_DEV=`blkid -l -t LABEL="CONTEXT" -o device` + if [ -e "$CONTEXT_DEV" ]; then mount -t iso9660 -L CONTEXT -o ro /mnt if [ -f /mnt/context.sh ]; then export_rc_vars /mnt/context.sh