80UmountImage.sh 347 Bytes
Newer Older
Nikos Skalkotos's avatar
Nikos Skalkotos committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

### BEGIN TASK INFO
# Provides:		UmountImage
# RunBefore:
# RunAfter:		MountImage
# Short-Description:	Umount the partition that hosts the image
### END TAST INFO

set -e
. /usr/share/snf-image/common.sh

if [ -z "$SNF_IMAGE_TARGET" ]; then
	log_error "Target dir:\`$SNF_IMAGE_TARGET\' is missing"
fi

umount $SNF_IMAGE_TARGET

exit 0