From b8969db83ed7b5222963af3df0b89101540fbd78 Mon Sep 17 00:00:00 2001 From: ramon Date: Wed, 6 May 2015 07:31:12 +0000 Subject: #673: Actualizar código incluido en OepnGnSys? 1.0.6 sobre la rama {{{version1.1}}}. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.1@4617 a21b9725-9963-47de-94b9-378ad31fedc9 --- admin/Sources/Services/ogAdmRepoAux | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'admin/Sources/Services/ogAdmRepoAux') diff --git a/admin/Sources/Services/ogAdmRepoAux b/admin/Sources/Services/ogAdmRepoAux index 76c61271..4e922e1a 100755 --- a/admin/Sources/Services/ogAdmRepoAux +++ b/admin/Sources/Services/ogAdmRepoAux @@ -157,8 +157,9 @@ case "$PARM1" in # Si no existe la imagen creamos el fichero. else echolog "Creamos la imagen $IMGFILE al tamaño necesario: $SIZEREQUIRED" - echolog dd if=/dev/zero of=$IMGFILE bs=1024 count=$SIZEREQUIRED - dd if=/dev/zero of=$IMGFILE bs=1024 count=$SIZEREQUIRED + touch "$IMGFILE" + echolog "truncate --size=\">$SIZEREQUIRED\"k $IMGFILE" + truncate --size=">$SIZEREQUIRED"k $IMGFILE 2>&1 > $REPOLOG #Formateamos imagen echo losetup $LOOPDEVICE "$IMGFILE" losetup $LOOPDEVICE "$IMGFILE" -- cgit v1.2.3-18-g5258