Skip to content

Commit

Permalink
CP-49195: Allows to preserve first partition from MBR layout
Browse files Browse the repository at this point in the history
This allows to install a clean XenServer 8 using NetScaler
platform machines based on MBR partution layout.

Signed-off-by: Frediano Ziglio <[email protected]>
  • Loading branch information
freddy77 committed May 23, 2024
1 parent df02532 commit 27efb59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,9 @@ def partitionTargetDisk(disk, existing, preserve_first_partition, create_sr_part

tool = PartitionTool(disk)

# Cannot preserve partition for legacy DOS partition table.
# Cannot preserve utility partition for legacy DOS partition table.
if tool.partTableType == constants.PARTITION_DOS :
if preserve_first_partition == 'true' or (
preserve_first_partition == constants.PRESERVE_IF_UTILITY and tool.utilityPartitions()):
if preserve_first_partition == constants.PRESERVE_IF_UTILITY and tool.utilityPartitions():
raise RuntimeError("Preserving initial partition on DOS unsupported")

# Preserve any utility partitions unless user told us to zap 'em
Expand Down

0 comments on commit 27efb59

Please sign in to comment.