diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py index 1f1985b5..865e8ab4 100644 --- a/src/pylorax/imgutils.py +++ b/src/pylorax/imgutils.py @@ -477,6 +477,9 @@ def mkfsimage(fstype, rootdir, outfile, size=None, mkfsargs=None, mountargs="", copytree(rootdir, mnt, preserve) do_grafts(graft, mnt, preserve) + # Save information about filesystem usage + execWithRedirect("df", [mnt]) + # Make absolutely sure that the data has been written runcmd(["sync"])