maybe fix CI

This commit is contained in:
Michael Hudson-Doyle 2023-06-28 12:45:34 +12:00
parent 283e07a615
commit bc11d0df3e
1 changed files with 5 additions and 2 deletions

View File

@ -565,8 +565,11 @@ class FilesystemController(SubiquityController, FilesystemManipulator):
raise Exception('failed to locate gap after adding boot')
if choice.reset_partition:
cp = await arun_command(['du', '-sb', '/cdrom'])
reset_size = int(cp.stdout.strip().split()[0])
if self.app.opts.dry_run:
reset_size = 500*MiB
else:
cp = await arun_command(['du', '-sb', '/cdrom'])
reset_size = int(cp.stdout.strip().split()[0])
reset_size = align_up(int(reset_size * 1.10), 256 * MiB)
reset_gap, gap = gap.split(reset_size)
self.reset_partition = self.create_partition(