<p>
If you messed up your VM and made it unbootable, it's
often useful to be able to go in and edit <code>/boot/grub/grub.conf</code>.
This guestfish script shows how to do that.
</p><pre>
editgrub.sh broken-guest.img
</pre><p>
See also <ahref="http://libguestfs.org/virt-edit.1.html">virt-edit</a>.
</p>