Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
gh-7: use blkid to find the context CD
Browse files Browse the repository at this point in the history
Also for http://dev.opennebula.org tickets #3749 and #3365
  • Loading branch information
Madko authored and jfontan committed May 14, 2015
1 parent ff81527 commit d54cad7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/etc/init.d/vmcontext
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d54cad7

Please sign in to comment.