summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-06-17 13:21:32 +0000
committerramon <ramongomez@us.es>2011-06-17 13:21:32 +0000
commit138ec5191f258d50b5766b428a4aa1bea9152c5f (patch)
treede595896f13cbe5e1cbbf137a1bb9ee4dbffdf8e /client
parent6b9fc6a1f1527c3096f58de42297f43cd3f3eb55 (diff)
Corregir errata al detectar tamaño de partición extendida (modificar #413)
git-svn-id: https://opengnsys.es/svn/trunk@2076 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client')
-rwxr-xr-xclient/engine/Disk.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/engine/Disk.lib b/client/engine/Disk.lib
index 7d4f0642..f15f1e08 100755
--- a/client/engine/Disk.lib
+++ b/client/engine/Disk.lib
@@ -458,7 +458,7 @@ PART="$(ogDiskToDev $1 $2)" || return $?
case "$(ogGetPartitionId $1 $2)" in
5|f) # Procesar detección de tamaño de partición Extendida.
sfdisk -l $DISK 2>/dev/null | \
- awk -v p=$PART '{if ($1==p) {sub (/\*/,""); print $5} }'
+ awk -v p=$PART '{if ($1==p) {sub (/[^0-9]+/,"",$5); print $5} }'
;;
*) sfdisk -s $PART
;;