diff options
Diffstat (limited to 'admin/Sources/Services/ogAdmRepoAux')
-rwxr-xr-x | admin/Sources/Services/ogAdmRepoAux | 5 |
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" |