summaryrefslogtreecommitdiffstats
path: root/admin/Sources
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2015-05-06 07:31:12 +0000
committerramon <ramongomez@us.es>2015-05-06 07:31:12 +0000
commitb8969db83ed7b5222963af3df0b89101540fbd78 (patch)
tree38f7751580ae2c8652e63a1f37679ee02c388f64 /admin/Sources
parent130bdbf38a243e94fa37afd875af1c40b317589c (diff)
#673: Actualizar código incluido en OepnGnSys? 1.0.6 sobre la rama {{{version1.1}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4617 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Sources')
-rwxr-xr-xadmin/Sources/Services/ogAdmRepoAux5
1 files changed, 3 insertions, 2 deletions
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"