From 138ec5191f258d50b5766b428a4aa1bea9152c5f Mon Sep 17 00:00:00 2001 From: ramon Date: Fri, 17 Jun 2011 13:21:32 +0000 Subject: Corregir errata al detectar tamaño de partición extendida (modificar #413) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/trunk@2076 a21b9725-9963-47de-94b9-378ad31fedc9 --- client/engine/Disk.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ;; -- cgit v1.2.3-18-g5258