Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-21 17:18:00 +0100
committerAnton Hvornum <anton@hvornum.se>2021-03-21 17:18:00 +0100
commitc00e09517fdb5ddfbc4d40b74b11a56795cebfde (patch)
treeb1bac65616fb0be220c71bed3c669d0fc1e9258a /archinstall
parent6a2dd8f5112f6f087772baf647a5c3b961541af5 (diff)
Centralized a partition call to use the logging feature raw_parted().
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index a1880198..ed5d1b28 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -365,7 +365,7 @@ class Filesystem():
if self.blockdevice.keep_partitions is False:
log(f'Wiping {self.blockdevice} by using partition format {self.mode}', level=LOG_LEVELS.Debug)
if self.mode == GPT:
- if sys_command(f'/usr/bin/parted -s {self.blockdevice.device} mklabel gpt',).exit_code == 0:
+ if self.raw_parted(f'{self.blockdevice.device} mklabel gpt').exit_code == 0:
return self
else:
raise DiskError(f'Problem setting the partition format to GPT:', f'/usr/bin/parted -s {self.blockdevice.device} mklabel gpt')