Expanded logging (slightly)
This commit is contained in:
parent
5926c3170d
commit
64645cdf1f
1 changed files with 5 additions and 0 deletions
|
|
@ -770,9 +770,11 @@ class State():
|
||||||
|
|
||||||
# Skip real format for dry runs
|
# Skip real format for dry runs
|
||||||
if dry_run:
|
if dry_run:
|
||||||
|
LOG.info('Dry run, refusing to format destination')
|
||||||
return
|
return
|
||||||
|
|
||||||
# Format disk
|
# Format disk
|
||||||
|
LOG.warning('Formatting destination: %s', self.destination.path)
|
||||||
with open(script_path, 'r') as _f:
|
with open(script_path, 'r') as _f:
|
||||||
proc = exe.run_program(
|
proc = exe.run_program(
|
||||||
cmd=['sudo', 'sfdisk', self.destination.path],
|
cmd=['sudo', 'sfdisk', self.destination.path],
|
||||||
|
|
@ -790,6 +792,9 @@ class State():
|
||||||
def retry_all_passes(self):
|
def retry_all_passes(self):
|
||||||
"""Prep block_pairs for a retry recovery attempt."""
|
"""Prep block_pairs for a retry recovery attempt."""
|
||||||
bad_statuses = ('*', '/', '-')
|
bad_statuses = ('*', '/', '-')
|
||||||
|
LOG.warning('Updating block_pairs for retry')
|
||||||
|
|
||||||
|
# Update all block_pairs
|
||||||
for pair in self.block_pairs:
|
for pair in self.block_pairs:
|
||||||
map_data = []
|
map_data = []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue