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:
parent
fc4232af63
commit
b9e84587ad
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue