5 # RunBefore: UmountImage
6 # Short-Description: Mount the partition that hosts the image
10 . "@commondir@/common.sh"
12 if [ ! -d "$SNF_IMAGE_TARGET" ]; then
13 log_error "Target dir:\`$SNF_IMAGE_TARGET' is missing"
16 if [ ! -b "$SNF_IMAGE_ROOTDEV" ]; then
17 log_error "Device file:\`$SNF_IMAGE_ROOTDEV' is not a block device"
20 mount "$SNF_IMAGE_ROOTDEV" "$SNF_IMAGE_TARGET"
24 # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :