osbuild: take partition into account in calc_id and add test

This commit is contained in:
Michael Vogt 2023-12-21 16:39:35 +01:00 committed by Dusty Mabe
parent 9cf68394d9
commit e76e0e92d6
2 changed files with 24 additions and 0 deletions

View file

@ -37,6 +37,8 @@ class Mount:
m.update(json.dumps(self.info.name, sort_keys=True).encode())
if self.device:
m.update(json.dumps(self.device.id, sort_keys=True).encode())
if self.partition:
m.update(json.dumps(self.partition, sort_keys=True).encode())
if self.target:
m.update(json.dumps(self.target, sort_keys=True).encode())
m.update(json.dumps(self.options, sort_keys=True).encode())