import tarfile
import tempfile
-__version__ = "1.1.2"
+__version__ = "1.1.3"
Format = False
Device = ""
def ensure_parttable(self):
logging.notice(f"Verifying that partition table on {Device} matches target specification")
for partnum, part in enumerate(self.part_table, 1):
- bo = subprocess.check_output(["blkid", "-o", "export", Device + str(partnum)]).decode('utf-8')
+ d = "/dev/" + get_partition_device(Device, partnum)
+ bo = subprocess.check_output(["blkid", "-o", "export", d]).decode('utf-8')
if "PARTLABEL=" in bo and f"PARTLABEL={part['name']}" not in bo:
logging.error(f'On-device partition label mismatch with selected target: partlabel={part["name"]}, on-device:\n{bo}')
sys.exit(1)