diff options
author | ramon <ramongomez@us.es> | 2017-03-23 11:18:06 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-03-23 11:18:06 +0000 |
commit | f338e35ec50ad444ebc5bf0f1251ddfc5413c2e2 (patch) | |
tree | 52623a2bdd259edd43c34830a331f260fd8a46e5 /client | |
parent | dda42ff58c8ac241865c1d8516f28297bfa9d256 (diff) |
#730: Modificar función {{{ogSetPartitionId}}} para evitar error al cambiar tipo de partición única en tabla MSDOS.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5245 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client')
-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 ca543136..6c82ef4d 100755 --- a/client/engine/Disk.lib +++ b/client/engine/Disk.lib @@ -1294,7 +1294,7 @@ ID="${3^^}" PTTYPE=$(ogGetPartitionTableType $1) case "$PTTYPE" in GPT) sgdisk -t$2:$ID $DISK 2>/dev/null ;; - MSDOS) echo -ne "t\n$2\n${ID}\nw\n" | fdisk $DISK | grep Syncing &>/dev/null ;; + MSDOS) sfdisk --id $DISK $2 $ID 2>/dev/null *) ogRaiseError $OG_ERR_OUTOFLIMIT "$1,$PTTYPE" return $? ;; esac |