diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py index d8ae3958..cfd9ce0b 100644 --- a/src/pylorax/imgutils.py +++ b/src/pylorax/imgutils.py @@ -447,6 +447,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"])