Bug 1196973 - RFE: virt-customize --truncate
Summary: RFE: virt-customize --truncate
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Maros Zatko
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-27 08:45 UTC by Richard W.M. Jones
Modified: 2015-03-23 14:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-23 14:12:59 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.