Revision 8704ee47 helper/tasks/30MountImage

b/helper/tasks/30MountImage
9 9
set -e
10 10
. /usr/share/snf-image/common.sh
11 11

  
12
if [ -z "$SNF_IMAGE_TARGET" ]; then
13
    log_error "Target dir:\`$SNF_IMAGE_TARGET\' is missing"
12
if [ ! -d "$SNF_IMAGE_TARGET" ]; then
13
    log_error "Target dir:\`$SNF_IMAGE_TARGET' is missing"
14 14
fi
15 15

  
16 16
if [ ! -b "$SNF_IMAGE_DEV"]; then
17
    log_error "Device file:\`$SNF_IMAGE_DEV\' is not a block device"
17
    log_error "Device file:\`$SNF_IMAGE_DEV' is not a block device"
18 18
fi
19 19

  
20 20
mount $SNF_IMAGE_DEV $SNF_IMAGE_TARGET

Also available in: Unified diff