1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-25 06:03:36 +03:00

Merge branch 'bug-2411'

This commit is contained in:
Ruben S. Montero 2013-11-12 22:45:35 +01:00
commit 61f1ceee50

View File

@ -50,16 +50,21 @@ function execute_scripts {
done
}
if [ -e "/dev/disk/by-label/CONTEXT" ]; then
mount -t iso9660 -L CONTEXT -o ro /mnt
if [ -f /mnt/context.sh ]; then
export_rc_vars /mnt/context.sh
case "$1" in
"start")
if [ -e "/dev/disk/by-label/CONTEXT" ]; then
mount -t iso9660 -L CONTEXT -o ro /mnt
if [ -f /mnt/context.sh ]; then
export_rc_vars /mnt/context.sh
fi
execute_scripts
umount /mnt
else
execute_scripts
fi
;;
execute_scripts
umount /mnt
else
execute_scripts
fi
esac