summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-05-22 14:19:55 +0200
committerIrina Gómez <irinagomez@us.es>2019-05-22 14:19:55 +0200
commit588d1eb2b5c7e766f1edffc5ae7d2e7e326a0a5b (patch)
tree1852e22823af72d1f2a444a904dc17e1984c8d35
parentff5e572cf33b27a5685dd643686b9987a4961714 (diff)
#802 #889 cloneRemoteFromMaster script in master, when computer has Efi active and operating system is Windows, copies boot loader folder from ESP to system partition.
-rwxr-xr-xclient/shared/scripts/cloneRemoteFromMaster7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/shared/scripts/cloneRemoteFromMaster b/client/shared/scripts/cloneRemoteFromMaster
index b78bd629..6d8001d2 100755
--- a/client/shared/scripts/cloneRemoteFromMaster
+++ b/client/shared/scripts/cloneRemoteFromMaster
@@ -159,6 +159,13 @@ case $MASTERIP in
#Obtener tamaño de la partición.
SIZE=$(ogGetPartitionSize $2 $3) || exit $(ogRaiseError $OG_ERR_REDUCEFS "Error al detectar tamaño partcion $2 $3 l127"; echo $?)
+ # Si es UEFI copio el cargador de arranque a la partición
+ OSTYPE="$(ogGetOsType $2 $3)"
+ if ogIsEfiActive && [ "$OSTYPE" == "Windows" ]; then
+ ogEcho log session "[12] $MSG_HELP_ogCopyEfiBootLoader"
+ ogCopyEfiBootLoader $2 $3
+ fi
+
if [ "$OGWINREDUCE" == "TRUE" ]
then
ogEcho log session "[15]: Calculando la reduccion del sistema de archivos DISK:$DISKSOURCE PARTITION:$PARTSOURCE SIZE:$SIZE"