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 1.2.3.4\nnameserver 1.2.3.5\n"