tools/osbuild-image-info: store fstype when iterating parts

When iterating through partitions, store the fstype along with the other
information.  This will be useful for identifying btrfs partitions,
which we will need to scan for subvolumes, and for identifying swap
partitions, so we can avoid trying to mount them.
This commit is contained in:
Achilleas Koutsou 2025-01-07 16:43:37 +01:00 committed by Tomáš Hozza
parent fc4232af63
commit b9e84587ad

View file

@ -2609,13 +2609,15 @@ def append_partitions(report, image):
mntopts = ["norecovery"]
filesystems[vol["uuid"].upper()] = {
"device": vol["device"],
"mntops": mntopts
"mntops": mntopts,
"type": vol["fstype"],
}
del vol["device"]
part.update(lvm)
elif part["uuid"] and part["fstype"]:
filesystems[part["uuid"].upper()] = {
"device": dev
"device": dev,
"type": part["fstype"],
}
# find partition with fstab and read it