summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-06-03 11:48:41 +0100
committerRichard Jones <rjones@redhat.com>2010-06-03 11:48:41 +0100
commitdccd9b8f525cfae49b89c38066d752e6c054c7f6 (patch)
treeac227bfdae7dba8e04e9d43f7f01fad0e153dd1e
parentfbe0802f9d237837d10026471186b1ef973c0877 (diff)
downloadlibguestfs-dccd9b8f525cfae49b89c38066d752e6c054c7f6.tar.gz
libguestfs-dccd9b8f525cfae49b89c38066d752e6c054c7f6.tar.xz
libguestfs-dccd9b8f525cfae49b89c38066d752e6c054c7f6.zip
grub-install: In docs suggest manually creating device.map (RHBZ#484986).
-rwxr-xr-xsrc/generator.ml13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml
index efc8bfd8..cc34676c 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -2329,7 +2329,18 @@ See also: C<guestfs_zero_device>, C<guestfs_scrub_device>.");
"install GRUB",
"\
This command installs GRUB (the Grand Unified Bootloader) on
-C<device>, with the root directory being C<root>.");
+C<device>, with the root directory being C<root>.
+
+Note: If grub-install reports the error
+\"No suitable drive was found in the generated device map.\"
+it may be that you need to create a C</boot/grub/device.map>
+file first that contains the mapping between grub device names
+and Linux device names. It is usually sufficient to create
+a file containing:
+
+ (hd0) /dev/vda
+
+replacing C</dev/vda> with the name of the installation device.");
("cp", (RErr, [Pathname "src"; Pathname "dest"]), 87, [],
[InitBasicFS, Always, TestOutput (