Added debugging

This commit is contained in:
Anton Hvornum 2021-05-14 19:34:01 +02:00
parent d0676dfa3d
commit 1fd432326b
1 changed files with 3 additions and 0 deletions

View File

@ -321,6 +321,9 @@ class Partition():
if log_formatting:
log(f'Formatting {path} -> {filesystem}', level=logging.INFO)
if path == '/dev/sda1' and filesystem == 'vfat':
raise ValueError("Debugging breakpoint!")
if filesystem == 'btrfs':
o = b''.join(sys_command(f'/usr/bin/mkfs.btrfs -f {path}'))
if b'UUID' not in o: