Skip to content

Commit

Permalink
Report file system type
Browse files Browse the repository at this point in the history
Previously, only the file sizes were reported:

~~~
Filesystem                                             Size  Used Avail Use% Mounted on
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4  399G  9.1G  373G   3% /
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4  399G  9.1G  373G   3% /
~~~

Newly, also file system type will be reported:

~~~
Filesystem                                             Type   Size  Used Avail Use% Mounted on
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4  btrfs  399G  9.1G  373G   3% /
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4  btrfs  399G  9.1G  373G   3% /
~~~

This is useful in case file system influeces the build result.

Fixes #1263
  • Loading branch information
voxik committed Dec 14, 2023
1 parent 1653b56 commit 6073484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock/py/mockbuild/plugins/hw_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _unprivPreInitHook(self):
out.write("\n\nMemory:\n")
out.write(output)

cmd = ["/bin/df", "-H", self.buildroot.make_chroot_path(), self.config["cache_topdir"]]
cmd = ["/bin/df", "-H", "-T", self.buildroot.make_chroot_path(), self.config["cache_topdir"]]
output = mockbuild.util.do(cmd, shell=False, returnOutput=True, raiseExc=False)
out.write("\n\nStorage (chroot, cache_topdir):\n")
out.write(output)
Expand Down

0 comments on commit 6073484

Please sign in to comment.