Added guestfish recipes.
[libguestfs.git] / recipes / editgrub.html
1 <h2>Fix an unbootable VM by editing /boot/grub/grub.conf</h2>
2
3 <p>
4 If you messed up your VM and made it unbootable, it's
5 often useful to be able to go in and edit <code>/boot/grub/grub.conf</code>.
6 This guestfish script shows how to do that.
7 </p>
8
9 <p>
10 Usage assumes that the VM has a separate <code>/boot</code>
11 partition containing grub, which is usually the case.  So
12 for example:
13 </p>
14
15 <pre>
16 editgrub.sh broken-guest.img /dev/sda1
17 </pre>