Corregir errata al detectar tamaño de partición extendida (modificar #413)
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2076 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/debian-pkg
parent
f48b8f97ce
commit
c438bd3ede
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue