New in libguestfs 1.12: easier file creation and appending in guestfish

In this series of posts I’ll be looking at what’s new in the forthcoming release of libguestfs 1.12.

Earlier versions of guestfish made it hard to append lines at the end of a configuration file. In libguestfs 1.12, this is much simpler because we support \n in quotes and a new write-append command.

$ guestfish -i -d Guest
><fs> write-append /etc/resolv.conf "nameserver\nnameserver\n"

Leave a comment

Filed under Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.