Bugfix: wimlib sections
This commit is contained in:
parent
ffa2abb2b4
commit
c52681be05
2 changed files with 4 additions and 4 deletions
|
|
@ -16,12 +16,12 @@ def backup_partition(disk, par):
|
||||||
|
|
||||||
cmd = [
|
cmd = [
|
||||||
global_vars['Tools']['wimlib-imagex'],
|
global_vars['Tools']['wimlib-imagex'],
|
||||||
'capture'
|
'capture',
|
||||||
'{}:\\'.format(par['Letter']),
|
'{}:\\'.format(par['Letter']),
|
||||||
par['Image Path'],
|
par['Image Path'],
|
||||||
par['Image Name'], # Image name
|
par['Image Name'], # Image name
|
||||||
par['Image Name'], # Image description
|
par['Image Name'], # Image description
|
||||||
' --compress=none',
|
'--compress=none',
|
||||||
]
|
]
|
||||||
dest_dir = re.sub(r'(.*)\\.*$', r'\1', par['Image Path'], re.IGNORECASE)
|
dest_dir = re.sub(r'(.*)\\.*$', r'\1', par['Image Path'], re.IGNORECASE)
|
||||||
os.makedirs(dest_dir, exist_ok=True)
|
os.makedirs(dest_dir, exist_ok=True)
|
||||||
|
|
@ -142,7 +142,7 @@ def verify_wim_backup(partition):
|
||||||
global_vars['Tools']['wimlib-imagex'],
|
global_vars['Tools']['wimlib-imagex'],
|
||||||
'verify',
|
'verify',
|
||||||
partition['Image Path'],
|
partition['Image Path'],
|
||||||
' --nocheck',
|
'--nocheck',
|
||||||
]
|
]
|
||||||
run_program(cmd)
|
run_program(cmd)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ def menu_backup():
|
||||||
other_results = other_results,
|
other_results = other_results,
|
||||||
disk = disk,
|
disk = disk,
|
||||||
par = par)
|
par = par)
|
||||||
if not result['CS']:
|
if not result['CS'] and not isinstance(result['Error'], GenericAbort):
|
||||||
errors = True
|
errors = True
|
||||||
par['Error'] = result['Error']
|
par['Error'] = result['Error']
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue