diff options
author | Papoteur <papoteur@mageia.org> | 2021-03-28 15:02:35 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2021-03-28 16:55:14 +0200 |
commit | 9d49bc3773b52ce31034e6fcb01be1524497442f (patch) | |
tree | b78f95499103633702df25e7dfcd23125428af54 | |
parent | 9049b787912dac1d9b85533ad77086fcebb505c3 (diff) | |
download | isodumper-9d49bc3773b52ce31034e6fcb01be1524497442f.tar isodumper-9d49bc3773b52ce31034e6fcb01be1524497442f.tar.gz isodumper-9d49bc3773b52ce31034e6fcb01be1524497442f.tar.bz2 isodumper-9d49bc3773b52ce31034e6fcb01be1524497442f.tar.xz isodumper-9d49bc3773b52ce31034e6fcb01be1524497442f.zip |
Add reporting partitions when selecting a device.
Use IdLabel and IdType reported by udisks
-rwxr-xr-x | lib/isodumper.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index 60345ed..6660e85 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -169,10 +169,8 @@ class UDisks2(object): for block in blocks: if (self.SERVICE + '.Partition' in objects[block['path']]): # we skip non partition blocks # Table should be something like '/org/freedesktop/UDisks2/block_devices/sdb' - print(objects[block['path']][self.SERVICE + '.Block']['Device'], objects[block['path']][self.SERVICE + '.Partition']['Table'],target) if objects[block['path']][self.SERVICE + '.Partition']['Table'].split('/')[-1] == target: partition = objects[block['path']][self.SERVICE + '.Block'] - print(partition['IdLabel']) partitions.append( {'device': bytes(partition['Device']).decode("UTF-8", "replace").strip("\0"), 'label': partition['IdLabel'], 'type': partition['IdType']}) |