RHEL 6: sr_mod.ko is needed for RHEL 6 to see CD-ROM devices (RHBZ#598807).
[libguestfs.git] / recipes / editgrub.html
1 <p>
2 If you messed up your VM and made it unbootable, it's
3 often useful to be able to go in and edit <code>/boot/grub/grub.conf</code>.
4 This guestfish script shows how to do that.
5 </p>
6
7 <p>
8 Usage assumes that the VM has a separate <code>/boot</code>
9 partition containing grub, which is usually the case.  So
10 for example:
11 </p>
12
13 <pre>
14 editgrub.sh broken-guest.img /dev/sda1
15 </pre>