diff options
author | irina <irinagomez@us.es> | 2013-10-29 09:23:02 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2013-10-29 09:23:02 +0000 |
commit | f754a8f6eb17ee8dd466758efb67f7003319cf8e (patch) | |
tree | adef60ffb8fd3745cdcc7792fd3ff4491e620300 /client/shared/scripts/createBaseImage | |
parent | 6c2dee2180e6d2871c2eb53fde09168dfe28b7fc (diff) |
#565 createBaseImage. Cambio en control de errores.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4069 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/createBaseImage')
-rwxr-xr-x | client/shared/scripts/createBaseImage | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/client/shared/scripts/createBaseImage b/client/shared/scripts/createBaseImage index 6535981c..f08027ac 100755 --- a/client/shared/scripts/createBaseImage +++ b/client/shared/scripts/createBaseImage @@ -34,7 +34,10 @@ function onexit() { local exit_status=$? echo "$MSG_ERR_GENERIC $exit_status" |tee -a $OGLOGFILE $OGLOGSESSION ogUnmountImage $3 "$4" $IMGEXT &>/dev/null - [ $exit_status -ne 4 ] && ogUnlockImage "$3" "/$4.$IMGEXT" && ogUnlock $1 $2 + if [ $exit_status -ne 4 ]; then + ogUnlockImage "$3" "/$4.$IMGEXT" + ogUnlock $1 $2 + fi exit $exit_status } @@ -151,8 +154,7 @@ ogWaitMountImage "$3" "$4" $IMGEXT $SIZEREQUIRED || ogRaiseError $OG_ERR_DONTMO echo " $MSG_HELP_ogSyncCreate." | tee -a $OGLOGSESSION $OGLOGFILE ogSyncCreate $1 $2 $3 "$4" $IMGEXT -# Lo comantamos hasta probar -> da error de ERROR: unable to resize '/tmp/mount/IMG' - No space left on device -# Reducimos la imagen +# Reducimos la imagen: solo para kernel <= 3.7, imagenes con FS ext4. echo "[90] $MSG_HELP_ogReduceImage: $3 /$4.$IMGEXT" | tee -a $OGLOGSESSION $OGLOGFILE ogReduceImage $3 "$4" $IMGEXT |