Statistics
| Branch: | Tag: | Revision:

root / snf-image-helper / tasks / 80UmountImage.in @ 3179b447

History | View | Annotate | Download (411 Bytes)

1
#! /bin/bash
2

    
3
### BEGIN TASK INFO
4
# Provides:		UmountImage
5
# RunBefore:
6
# RunAfter:		MountImage
7
# Short-Description:	Umount the partition that hosts the image
8
### END TAST INFO
9

    
10
set -e
11
. @commondir@/common.sh
12

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

    
17
umount $SNF_IMAGE_TARGET
18

    
19
cleanup
20
trap - EXIT
21

    
22
exit 0
23

    
24
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
25