Description of problem: virt-sysprep could also clean these files, occasionally seen left behind: - /etc/*- - /etc/*.bak - /root/*.ks
Patches posted: https://www.redhat.com/archives/libguestfs/2016-December/msg00111.html However I cannot see a good rule that would cover /root/*.ks. It's probably best to delete such files using the option --delete "/root/*.ks"
Patch v2 posted: https://www.redhat.com/archives/libguestfs/2016-December/msg00116.html
Fixed upstream in libguestfs >= 1.35.18.
(In reply to Richard W.M. Jones from comment #1) > > However I cannot see a good rule that would cover /root/*.ks. > It's probably best to delete such files using the option > --delete "/root/*.ks" Good that you didn't merge it; it was a typo/braino. Now double-checking with RHEL 7.3, I see the virt-sysprep removed /root/anaconda-ks.cfg but left /root/original-ks.cfg behind. Could the latter be removed as well while at it? Thanks.
(In reply to Marko Myllynen from comment #4) > Now double-checking with RHEL 7.3, I see the virt-sysprep removed > > /root/anaconda-ks.cfg > > but left > > /root/original-ks.cfg > > behind. Could the latter be removed as well while at it? Sure thing -- just done: https://github.com/libguestfs/libguestfs/commit/331517d9a3ffd6555dad1a3857c2fe1d9e6a434d will be in libguestfs >= 1.35.19.
(In reply to Pino Toscano from comment #5) > (In reply to Marko Myllynen from comment #4) > > Now double-checking with RHEL 7.3, I see the virt-sysprep removed > > > > /root/anaconda-ks.cfg > > > > but left > > > > /root/original-ks.cfg > > > > behind. Could the latter be removed as well while at it? > > Sure thing -- just done: > https://github.com/libguestfs/libguestfs/commit/ > 331517d9a3ffd6555dad1a3857c2fe1d9e6a434d > will be in libguestfs >= 1.35.19. Thanks!