From e521fb869b8734ee80b9541157109f4451560012 Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Mon, 4 May 2020 14:50:03 +0200 Subject: # 911 Fixes bug in partitioning wizard when create Cache: tries to mount cache partition, if not possible formats it. Solution proposed by Antonio Doblas (UMA). --- admin/WebConsole/asistentes/jscripts/asistentes.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'admin/WebConsole') diff --git a/admin/WebConsole/asistentes/jscripts/asistentes.js b/admin/WebConsole/asistentes/jscripts/asistentes.js index b26eef01..8f521e44 100644 --- a/admin/WebConsole/asistentes/jscripts/asistentes.js +++ b/admin/WebConsole/asistentes/jscripts/asistentes.js @@ -301,6 +301,10 @@ if [ $EVAL -eq 0 ]; then \n \ ms-sys /dev/sda | grep unknow && ms-sys /dev/sda \n \ ogExecAndLog command session log ogListPartitions "+n_disk+" \n\ "+ swapCode +"\ + if ogFindCache &>/dev/null; then \n\ + ogMountCache || ogFormatCache \n\ + updateBootCache \n \ + fi \n \ else \n \ ogEcho session log \"[100] ERROR: $MSG_HELP_ogCreatePartitions\" \n \ return $EVAL \n \ @@ -401,6 +405,10 @@ if [ $EVAL -eq 0 ]; then \n \ ogUpdatePartitionTable "+n_disk+" \n \ ms-sys /dev/sda | grep unknow && ms-sys /dev/sda \n \ ogExecAndLog command session log ogListPartitions "+n_disk+" \n \ + if ogFindCache &>/dev/null; then \n\ + ogMountCache || ogFormatCache \n\ + updateBootCache \n \ + fi \n \ else \n \ ogEcho session log \"[100] ERROR: $MSG_HELP_ogCreatePartitions\" \n \ return $EVAL \n \ -- cgit v1.2.3-18-g5258