[Libguestfs] [PATCH 0/4] sysprep: Remove various backup files.

Richard W.M. Jones rjones at redhat.com
Wed Dec 14 10:26:43 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1401320

This series contains two new operations.

The second -- and least controversial -- is "passwd-backups" which
removes files such as /etc/passwd-, /etc/shadow- and so on.

The first one ("backup-files") searches the whole guest filesystem for
any regular file which looks like an editor backup file, such as "*~"
and deletes it.  Unfortunately there are two problems with this
operation at the moment.  It's slow, taking 30 seconds to examine a
virt-builder fedora-25 barebones filesystem.  It can also remove
RPM-owned files (see https://bugzilla.redhat.com/show_bug.cgi?id=1404634).
It should possibly skip /usr or only check a whitelist of directories
such as /etc.

Rich.




More information about the Libguestfs mailing list