mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
Mount CDROM context by Label
This commit is contained in:
parent
47bf5a55b9
commit
53d0108469
@ -50,10 +50,8 @@ function execute_scripts {
|
||||
done
|
||||
}
|
||||
|
||||
CDROM_DEVICE=$(ls /dev/cdrom* /dev/scd* /dev/sr* 2>/dev/null| sort | head -n 1)
|
||||
|
||||
if [ -e "$CDROM_DEVICE" ]; then
|
||||
mount -t iso9660 $CDROM_DEVICE /mnt
|
||||
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
|
||||
|
@ -93,7 +93,7 @@ for f in "${SRC[@]}"; do
|
||||
[ -n "$ERROR" ] && exit_error
|
||||
done
|
||||
|
||||
exec_and_set_error "$MKISOFS -o $ISO_FILE -J -R $ISO_DIR" \
|
||||
exec_and_set_error "$MKISOFS -o $ISO_FILE -V CONTEXT -J -R $ISO_DIR" \
|
||||
"Error creating iso fs"
|
||||
[ -n "$ERROR" ] && exit_error
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user