* util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
install rather than creating a broken install.
This commit is contained in:
parent
26c53dc64c
commit
95b9257e6e
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
|
||||
install rather than creating a broken install.
|
||||
|
||||
2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub-setup.c (argp): Remove misleading example of installing to
|
||||
|
|
|
@ -482,6 +482,12 @@ unable_to_embed:
|
|||
grub_util_error (_("embedding is not possible, but this is required when "
|
||||
"the root device is on a RAID array or LVM volume"));
|
||||
|
||||
#ifdef GRUB_MACHINE_PCBIOS
|
||||
if (dest_dev->disk->id != root_dev->disk->id)
|
||||
grub_util_error (_("embedding is not possible, but this is required for "
|
||||
"cross-disk install"));
|
||||
#endif
|
||||
|
||||
grub_util_warn (_("Embedding is not possible. GRUB can only be installed in this "
|
||||
"setup by using blocklists. However, blocklists are UNRELIABLE and "
|
||||
"their use is discouraged."));
|
||||
|
|
Loading…
Add table
Reference in a new issue