Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-12-07 15:40:39 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-12-07 15:40:39 +0100
commit1209c8f5508b72c7224c3e3b6e4186d4def682ec (patch)
treec3fca4fb993a4aa204e8eb9987405b4af5eacbdd /archinstall/lib
parent5882fa958771df64bdcb5ff75f1768d4ee4b30dc (diff)
Tweaked debugging a bit
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index d3afc4a3..82a61dba 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -77,7 +77,7 @@ class BlockDevice():
#o = b''.join(sys_command('/usr/bin/lsblk -o name -J -b {dev}'.format(dev=dev)))
o = b''.join(sys_command(f'/usr/bin/lsblk -J {self.path}'))
- print(self, 'partitions:', o.decode('UTF-8'))
+ print(self, 'partitions:', o)
if b'not a block device' in o:
raise DiskError(f'Can not read partitions off something that isn\'t a block device: {self.path}')
@@ -221,13 +221,14 @@ class Filesystem():
def add_partition(self, type, start, end, format=None):
log(f'Adding partition to {self.blockdevice}', level=LOG_LEVELS.Info, file=storage.get('logfile', None))
+ print('Before:', self.blockdevice.partitions)
if format:
- paritioning = self.parted(f'{self.blockdevice.device} mkpart {type} {format} {start} {end}') == 0
+ partitioning = self.parted(f'{self.blockdevice.device} mkpart {type} {format} {start} {end}') == 0
else:
- paritioning = self.parted(f'{self.blockdevice.device} mkpart {type} {start} {end}') == 0
+ partitioning = self.parted(f'{self.blockdevice.device} mkpart {type} {start} {end}') == 0
+ print('After:', print(self.blockdevice.partitions))
- if paritioning:
- # Verify that partitions exist before releasing the application onwards: print(b''.join(sys_command(f'/usr/bin/partprobe {string}')))
+ if partitioning:
return True
def set_name(self, partition:int, name:str):