summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/createDiffImage
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2014-04-25 09:37:45 +0000
committeririna <irinagomez@us.es>2014-04-25 09:37:45 +0000
commit332bbb13d893fb3c9b67ec41027d2493e5c41fd6 (patch)
tree4d6eee027f07fea001c520b3d1be62b0805d0bd8 /client/shared/scripts/createDiffImage
parent97f6020f68eb732c73f9be1472c5138fb26073a6 (diff)
#565 Compatibilidad con el comando file de Ubuntu 14.04 para obtener correctamente la versión del Kernel del cliente ogLive.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4252 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/createDiffImage')
-rwxr-xr-xclient/shared/scripts/createDiffImage3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/shared/scripts/createDiffImage b/client/shared/scripts/createDiffImage
index e9806939..ecbf2914 100755
--- a/client/shared/scripts/createDiffImage
+++ b/client/shared/scripts/createDiffImage
@@ -46,7 +46,8 @@ function onexit() {
# Factor de calculo de Time out al crear imagen: valor por defecto en engine.cfg
CREATESPEED=${CREATESPEED:-"100000*4"}
# Sistema de fichero de la imagen según kernel, menor que 3.7 EXT4. comparamos revision
-[ $(uname -r|cut -d. -f2) -lt 7 ] && IMGFS="EXT4" || IMGFS="BTRFS"
+KERNELVERSION=$(uname -r| awk '{printf("%d",$1);sub(/[0-9]*\./,"",$1);printf(".%02d",$1)}')
+[ $KERNELVERSION \< 3.7 ] && IMGFS="EXT4" || IMGFS="BTRFS"
# % de compresion para estimacion tamaño imagen IMGFS="EXT4"
ZSYNC=${ZSYNC:-"120"}
# Si IMGFS="BTRFS" la compresion es mayor.