summaryrefslogtreecommitdiffstats
path: root/client/engine/Disk.lib
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-05-29 11:13:43 +0000
committerramon <ramongomez@us.es>2017-05-29 11:13:43 +0000
commitdee9faca9e07f9d7b974ebf5213dc38e94a3f599 (patch)
tree61b657b655eda89b6e882824997c69265dc51704 /client/engine/Disk.lib
parentfa3eca02e3806fa7ff1f5f19468b5855f67a3ce1 (diff)
#676 #730: Definir particiones para volúmenes LVM y ZFS; modificar configuración para evitar errores con MySQL 5.7 (Ubuntu 16.04).
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5322 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Disk.lib')
-rwxr-xr-xclient/engine/Disk.lib16
1 files changed, 13 insertions, 3 deletions
diff --git a/client/engine/Disk.lib b/client/engine/Disk.lib
index 45e5bedd..702bd7fb 100755
--- a/client/engine/Disk.lib
+++ b/client/engine/Disk.lib
@@ -1062,6 +1062,8 @@ case "${ID,,}" in
bf03) TYPE="SOLARIS-DISK" ;;
ef01) TYPE="MBR" ;;
ef02) TYPE="BIOS-BOOT" ;;
+ 10000) TYPE="LVM-LV" ;;
+ 10010) TYPE="ZFS-VOL" ;;
*) TYPE="UNKNOWN" ;;
esac
echo "$TYPE"
@@ -1416,7 +1418,7 @@ ogSetPartitionId $1 $2 $ID
function ogTypeToId ()
{
# Variables locales
-local PTTYPE ID
+local PTTYPE ID=""
# Si se solicita, mostrar ayuda.
if [ "$*" == "help" ]; then
@@ -1460,7 +1462,6 @@ case "$PTTYPE" in
CACHE) ID=CA00;;
EFI) ID=EF00 ;;
LINUX-RAID) ID=FD00 ;;
- *) ID="" ;;
esac
;;
MSDOS)
@@ -1491,7 +1492,16 @@ case "$PTTYPE" in
EFI) ID=ef ;;
VMFS) ID=fb ;;
LINUX-RAID) ID=fd ;;
- *) ID="" ;;
+ esac
+ ;;
+ LVM)
+ case "$1" in
+ LVM-LV) ID=10000 ;;
+ esac
+ ;;
+ ZVOL)
+ case "$1" in
+ ZFS-VOL) ID=10010 ;;
esac
;;
esac