mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
Fix to comply to code style
This commit is contained in:
parent
22d3d3e235
commit
02972e6b27
2 changed files with 4 additions and 4 deletions
|
@ -67,8 +67,8 @@ class GPTPartitionMap(AbstractPartitionMap):
|
|||
for partition in data:
|
||||
if partition not in ["boot", "swap", "root", "type"] and not None:
|
||||
part_tmp = GPTPartition(Sectors(data[partition]['size'], sector_size),
|
||||
data[partition]['filesystem'], data[partition].get('format_command', None),
|
||||
data[partition].get('mountopts', None), partition, last_partition())
|
||||
data[partition]['filesystem'], data[partition].get('format_command', None),
|
||||
data[partition].get('mountopts', None), partition, last_partition())
|
||||
part_tmp.pad_start += partition_gap
|
||||
part_tmp.size -= partition_gap
|
||||
setattr(self, partition, part_tmp)
|
||||
|
|
|
@ -54,8 +54,8 @@ class MSDOSPartitionMap(AbstractPartitionMap):
|
|||
self.partitions.append(self.root)
|
||||
|
||||
# Raise exception while trying to create additional partitions
|
||||
# as its hard to calculate the actual size of the extended partition ATM
|
||||
# And anyhow - we should go with GPT...
|
||||
# as its hard to calculate the actual size of the extended partition ATM
|
||||
# And anyhow - we should go with GPT...
|
||||
for partition in data:
|
||||
if partition not in ["boot", "swap", "root", "type"]:
|
||||
raise PartitionError("If you want to have additional partitions please use GPT partition scheme")
|
||||
|
|
Loading…
Add table
Reference in a new issue