Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #26922
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: need to add Legacy boot |
| Date | 2019-05-04 00:00 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrnqcq73k.dd6.BitTwister@wb.home.test> (permalink) |
| References | <qae847$tl6$1@dont-email.me> <slrnqclqpc.qb0.BitTwister@wb.home.test> <qafafd$bpr$1@dont-email.me> <slrnqcmknu.ork.BitTwister@wb.home.test> <qaj3ms$ad1$1@dont-email.me> |
On Fri, 3 May 2019 21:16:27 -0700, T wrote:
> On 5/2/19 1:28 PM, Bit Twister wrote:
>> On Thu, 2 May 2019 10:47:24 -0700, T wrote:
>>> On 5/2/19 6:05 AM, Bit Twister wrote:
>>
>>>> I had the same kind of problem. Old grub2 had no problem noticing
>>>> I had a grub2 Legacy OS UEFI install. New and improved grub2 was able
>>>> to poke around in the bios and saw it would support EFI and wanted
>>>> to enforce its usage. :(
>>>>
>>>> Solution was to get into bios on all three of my systems and change
>>>> them from EFI or Legacy OS boot, to Legacy OS boot only.
>>>>
>>>
>>>
>>> Ah ha!
>>>
>>> /usr/sbin/grub2-mkconfig is bash script, so I can create my own with
>>> it tricked to think it is a legacy system
>>
>> If you only want Legacy OS boot, do check that the bios has a Legacy OS
>> ONLY boot selection option.
>>
>> I would not recommend dinking around with /usr/sbin/grub2-mkconfig
>> Next grub2 release could wipe out any changes made.
>
>
> The machines I will be sticking this in will vary widely as
> to their support of EFI and legacy.
>
>>
>>> I can also do a side by side of UEFI's grug.cfg and another
>>> system's legacy grub.cfg and see what the difference is
>>> so I can write my own converter.
>>>
>>> Probably need to do this every kernel upgrade too.
>>
>> Yes you would. As for rolling your own grub.cfg, you place your own
>> customization script(s) in /etc/grub.d/. File name dictates order of
>> execution.
>>
>> For example, I want to use partition label for booting instead of UUID,
>> meaningful menu entries, able to boot Mageia iso images. and Systemcd
>> rescue isos. So I have
>> $ [bittwister@wb grub.d]$ ls -1 *__*
>> 10a_label_xx__grub
>> 10a_linux_xx__grub
>> 20a_Mageia_isos_xx__grub
>> 20b_rescue_cd_xx__grub
>>
>
> My test bed is qemu-kvm. I have a specific machine set up for
> Legacy and another for EFI.
>
> "40-custom" or some such.
Again, file name makes a difference as to where your change script
will be executed.
As for different machines, I use the node name in the script to make any
node specific decisions as to what goes into grub.cfg.
> I have been looking at
> both a Legacy and a EFI grub.cfg and I will be danged if
> I can tell the difference.
I find using diff pretty handy to point out changes in files.
> I think part of the problem is that in Legacy mode, I
> hae grub look for /boot/efi, which is on its own partition.
A glance through my make file indicates I run
grub2-install /dev/sda
to set boot loader. I am not surem but I think if bios is set
Legacy OS it will use /dev/sda/.
If bios is set efi, it will use /boot/efi
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
need to add Legacy boot T <T@invalid.invalid> - 2019-05-02 01:01 -0700
Re: need to add Legacy boot "Carlos E. R." <robin_listas@es.invalid> - 2019-05-02 11:14 +0200
Re: need to add Legacy boot T <T@invalid.invalid> - 2019-05-02 10:42 -0700
Re: need to add Legacy boot Rich <rich@example.invalid> - 2019-05-02 21:57 +0000
Re: need to add Legacy boot Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-05-04 00:01 +0200
Re: need to add Legacy boot T <T@invalid.invalid> - 2019-05-03 21:12 -0700
Re: need to add Legacy boot Bit Twister <BitTwister@mouse-potato.com> - 2019-05-02 08:05 -0500
Re: need to add Legacy boot T <T@invalid.invalid> - 2019-05-02 10:47 -0700
Re: need to add Legacy boot Bit Twister <BitTwister@mouse-potato.com> - 2019-05-02 15:28 -0500
Re: need to add Legacy boot T <T@invalid.invalid> - 2019-05-03 21:16 -0700
Re: need to add Legacy boot Bit Twister <BitTwister@mouse-potato.com> - 2019-05-04 00:00 -0500
Re: need to add Legacy boot T <T@invalid.invalid> - 2019-05-03 23:12 -0700
csiph-web