Bug 1196973

Summary: RFE: virt-customize --truncate
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Maros Zatko <mzatko>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mzatko, ptoscano, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-23 14:12:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2015-02-27 08:45:08 UTC
Description of problem:

There should be a virt-customize --truncate option which
truncates a file (keeping its permissions etc).  The
use for this is to truncate log files and so on, eg.

 virt-builder --truncate /var/log/messages

Maybe even consider a recursive truncate which truncates
all files in a directory, eg:

 virt-builder --truncate-recursive /var/log

Additional information:

Suggested by NuxRo on IRC.