summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2013-04-09 10:17:00 +0000
committerramon <ramongomez@us.es>2013-04-09 10:17:00 +0000
commite04f987f6b75a7e6ecd9414088f581b31131d48f (patch)
tree2ee4aa2b2e393841b33a2fe849a35d24f636d04e
parent3e3797ec0f3675dd4919876c5dfe974321c4a234 (diff)
#594: Orden correcto de ejecución de órdenes para no perder la definición de caché en el Comando Particionar.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3735 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-xadmin/Interface/Configurar14
1 files changed, 7 insertions, 7 deletions
diff --git a/admin/Interface/Configurar b/admin/Interface/Configurar
index c9cc7bee..9b0a6811 100755
--- a/admin/Interface/Configurar
+++ b/admin/Interface/Configurar
@@ -117,7 +117,14 @@ ogUpdatePartitionTable $dis | tee -a $OGLOGSESSION $OGLOGFILE
# Crea tabla de particiones MSDOS (NOTA: adaptar para tablas GPT).
ogCreatePartitionTable $dis MSDOS
+# Cuestión caché
+if [ "$che" == "1" ]; then
+ initCache $tch >/dev/null | tee -a $OGLOGSESSION $OGLOGFILE
+fi
+
+# Definir particionado.
ogCreatePartitions $dis ${TBP[@]} | tee -a $OGLOGSESSION $OGLOGFILE
+ogUpdatePartitionTable $dis | tee -a $OGLOGSESSION $OGLOGFILE
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
@@ -138,13 +145,6 @@ for ((par=1; par<=$maxp; par++)); do
fi
done
-# Cuestión caché
-if [ "$che" == "1" ]; then
- initCache $tch >/dev/null | tee -a $OGLOGSESSION $OGLOGFILE
-fi
-
-ogUpdatePartitionTable $dis | tee -a $OGLOGSESSION $OGLOGFILE
-
#___________________________________________________________________
#
# Retorno