LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   messed up elilo and cant get grub2 bootloader installed (https://www.linuxquestions.org/questions/slackware-14/messed-up-elilo-and-cant-get-grub2-bootloader-installed-4175646892/)

mrapathy 01-24-2019 03:29 PM

messed up elilo and cant get grub2 bootloader installed
 
Not sure what I did or am doing.

Want grub2 as my default bootloader. had elilo though it was weird didnt have /etc/elilo.conf but did have a elilo.conf in /boot/efi somewhere

now I just want grub2 to take things over but my system is stuck booting some kernel from old elilo install.

help suggestions

ran elilo-config and it made a boot entry for slackware and it booting default
recently ran grub-install

trying for multiboot though have custom kernel files with tv tuner and a win10 partition. would rather not have to change boot priority everytime I want to boot windows or linux


what do I need to get grub2 to take over things. trying to get a windows install bootable again why I ran elilo-config but it destroyed elilo.conf from subdir of /boot/efi
--
update found grub boot section in bios and moved it up though doesnt have other kernel nor windows boot option. if I could get that would consider mission accomplished. /boot/efi is a mess

Tonus 01-24-2019 04:37 PM

messed up elilo and cant get grub2 bootloader installed
 
So you need basic grub config?
Code:


grub-mkconfig -o /boot/grub/grub.cfg

This assumes you have a working kernel with it according initrd.

colorpurple21859 01-24-2019 05:46 PM

assuming this is a uefi system
make sure the efi partition is mounted at /boot/efi
Code:

grub-install --target=x86_64-efi /dev/sda
then
Code:

grub-mkconfig -o /boot/grub/grub.cfg
Slackware doesn't automatically run grub-mkconfig when kernels are updated.

for elilo to work when kernels are updated need to copy new kernel to /boot/efi/EFI/slackware directory. If you copy the kernel to efi and name it vmlinuz then won't have to edit the elilo.conf file that in /boot/efi/EFI/slackware when kernels are updated.

slac-in-the-box 01-24-2019 05:50 PM

hope you get grub going! if you don't, efibootmgr is useful for adding efi boot entries and setting their boot order. What I've determined from messing with efi, is that there are basically two boot menus: the boot menu that comes up when holding a boot menu key down during boot, which varies by manufacturer (it's f12 on my ideapad, but it could be different on yours); and then there's another boot menu that you can get at the elilo prompt by pressing "tab" which allows you to choose between boot images defined in elilo.conf... thus, efibootmgr is useful for manipulating the efi boot menu; whereas elilo-config, or manually editing elilo.conf manipulates the elilo boot menu...

mrapathy 01-24-2019 06:24 PM

Thanks everyone got it.

Forgot with elilo you just update elilo.conf and dont need to run eliloconfig.

grub2 I dont know about though didnt run grub-mkconfig. have a feeling that would have fixed what I needed.


All times are GMT -5. The time now is 07:12 AM.