aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2021-03-28 15:02:35 +0200
committerPapoteur <papoteur@mageia.org>2021-03-28 16:55:14 +0200
commit9d49bc3773b52ce31034e6fcb01be1524497442f (patch)
treeb78f95499103633702df25e7dfcd23125428af54
parent9049b787912dac1d9b85533ad77086fcebb505c3 (diff)
downloadisodumper-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-xlib/isodumper.py2
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']})