diff options
author | ramon <ramongomez@us.es> | 2011-06-17 13:21:32 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2011-06-17 13:21:32 +0000 |
commit | 138ec5191f258d50b5766b428a4aa1bea9152c5f (patch) | |
tree | de595896f13cbe5e1cbbf137a1bb9ee4dbffdf8e | |
parent | 6b9fc6a1f1527c3096f58de42297f43cd3f3eb55 (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
-rwxr-xr-x | client/engine/Disk.lib | 2 |
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 ;; |