From: Richard Jones Date: Wed, 22 Jul 2009 11:39:21 +0000 (+0100) Subject: Todo: Suggestion for 'replace' command. X-Git-Tag: 1.0.63~6 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=afe8096e9aa2a18541e92262d9473de4a65fa29e;p=libguestfs.git Todo: Suggestion for 'replace' command. --- diff --git a/TODO b/TODO index 5dc8bd5..16d6880 100644 --- a/TODO +++ b/TODO @@ -176,3 +176,25 @@ Other initrd-* commands, such as: initrd-extract initrd-replace + +---------------------------------------------------------------------- + +Some easy non-Augeas methods to edit configuration files. +I'm thinking: + + replace /etc/file key value + +which would look in /etc/file for any instances of + + key=... + key ... + key:... + +and replace them with + + key=value + key value + key:value + +That would solve about 50% of reconfiguration needs, and for the +rest you'd use Augeas, 'download'+'upload' or 'edit'.