parent
5147a4105f
commit
075a0d8541
1 changed files with 3 additions and 3 deletions
|
|
@ -226,8 +226,6 @@ def finalize_recovery(state: State, dry_run: bool = True) -> None:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Run functions
|
# Run functions
|
||||||
if menu.options['Relocate Backup GPT']['Selected']:
|
|
||||||
relocate_backup_gpt(state, dry_run=dry_run)
|
|
||||||
if menu.options['Zero-fill Gaps']['Selected']:
|
if menu.options['Zero-fill Gaps']['Selected']:
|
||||||
zero_fill_gaps(
|
zero_fill_gaps(
|
||||||
state,
|
state,
|
||||||
|
|
@ -235,6 +233,9 @@ def finalize_recovery(state: State, dry_run: bool = True) -> None:
|
||||||
dry_run=dry_run,
|
dry_run=dry_run,
|
||||||
extend_to_end=menu.options['Zero-fill Extra Space']['Selected'],
|
extend_to_end=menu.options['Zero-fill Extra Space']['Selected'],
|
||||||
)
|
)
|
||||||
|
if menu.options['Relocate Backup GPT']['Selected']:
|
||||||
|
# NOTE: This needs to be run last to avoid corrupting/erasing the backup GPT
|
||||||
|
relocate_backup_gpt(state, dry_run=dry_run)
|
||||||
|
|
||||||
|
|
||||||
def is_missing_source_or_destination(state) -> bool:
|
def is_missing_source_or_destination(state) -> bool:
|
||||||
|
|
@ -361,7 +362,6 @@ def relocate_backup_gpt(state: State, dry_run: bool = True) -> None:
|
||||||
and state.source.size < state.destination.size
|
and state.source.size < state.destination.size
|
||||||
and not state.source.parent
|
and not state.source.parent
|
||||||
and str(state.source.raw_details.get('pttype', 'Unknown')).lower() == 'gpt'
|
and str(state.source.raw_details.get('pttype', 'Unknown')).lower() == 'gpt'
|
||||||
and cli.ask('Relocate backup GPT to the end of the device?')
|
|
||||||
):
|
):
|
||||||
LOG.warning('Refusing to attempt a backup GPT relocation.')
|
LOG.warning('Refusing to attempt a backup GPT relocation.')
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue