fixed mistake in disk.py
This commit is contained in:
parent
94456bf8ba
commit
563a50dbc0
|
|
@ -348,7 +348,7 @@ class Filesystem():
|
||||||
else:
|
else:
|
||||||
raise DiskError(f'Problem setting the partition format to GPT:', f'/usr/bin/parted -s {self.blockdevice.device} mklabel gpt')
|
raise DiskError(f'Problem setting the partition format to GPT:', f'/usr/bin/parted -s {self.blockdevice.device} mklabel gpt')
|
||||||
elif self.mode == MBR:
|
elif self.mode == MBR:
|
||||||
if sys_command(f'/usr/bin/parted -s {self.blockdevice.} mklabel msdos').exit_code == 0:
|
if sys_command(f'/usr/bin/parted -s {self.blockdevice.device} mklabel msdos').exit_code == 0:
|
||||||
return self
|
return self
|
||||||
else:
|
else:
|
||||||
raise DiskError(f'Problem setting the partition format to GPT:', f'/usr/bin/parted -s {self.blockdevice.device} mklabel msdos')
|
raise DiskError(f'Problem setting the partition format to GPT:', f'/usr/bin/parted -s {self.blockdevice.device} mklabel msdos')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue