diff options
| author | Richard Jones <rjones@redhat.com> | 2010-06-03 11:48:41 +0100 |
|---|---|---|
| committer | Richard Jones <rjones@redhat.com> | 2010-07-12 08:31:04 +0100 |
| commit | 35f6f6df609b6f27fc27302abf0d72124a964824 (patch) | |
| tree | 7d8036b93659cfd6eca35cd0d9de558e084d0bb1 | |
| parent | 4580b79d9a47dc9b6ff76070b7b5cc8f3499da09 (diff) | |
| download | libguestfs-35f6f6df609b6f27fc27302abf0d72124a964824.tar.gz libguestfs-35f6f6df609b6f27fc27302abf0d72124a964824.tar.xz libguestfs-35f6f6df609b6f27fc27302abf0d72124a964824.zip | |
grub-install: In docs suggest manually creating device.map (RHBZ#484986).
(cherry picked from commit dccd9b8f525cfae49b89c38066d752e6c054c7f6)
| -rwxr-xr-x | src/generator.ml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml index a52ddce0..9c13d400 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -2327,7 +2327,18 @@ See also: 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 ( |
