tools/image-info: mount with the mount options
Before the new version of image-info was ignoring the mount options for the devices leading to errors in the resulting json.
This commit is contained in:
parent
62e6bed23d
commit
ffd45d635a
1 changed files with 7 additions and 2 deletions
|
|
@ -2632,8 +2632,13 @@ def append_partitions(report, image):
|
||||||
info = index.get_module_info("Mount", "org.osbuild.xfs")
|
info = index.get_module_info("Mount", "org.osbuild.xfs")
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("Unknown file system")
|
raise RuntimeError("Unknown file system")
|
||||||
options = { "readonly":True }
|
options = {"readonly": True}
|
||||||
|
for option in part_options:
|
||||||
|
if "=" in option:
|
||||||
|
parts = option.split("=")
|
||||||
|
options[parts[0]] = parts[1]
|
||||||
|
else:
|
||||||
|
options[option] = True
|
||||||
|
|
||||||
# the first mount point should be root
|
# the first mount point should be root
|
||||||
if n == 0:
|
if n == 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue