LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-19-2022, 10:46 PM   #1
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Rep: Reputation: Disabled
How do you remove grub and go back to elilo?


Just spun up an new Slackware64 15 linode. Performed an update and the upgrade Slackware kernel doesn't work.

The Linode guy who made the Slackware image is apparently a grub fan.

I want to remove grub and make it as Slackware vanilla as I can and start from there.

Can anyone tell me how to get rid of grub and go back to elilo?

FULL DISCLOSURE: I know nothing about grub. I don't use it.
 
Old 05-19-2022, 11:04 PM   #2
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
After a kernel upgrade with GRUB on Slackware run:

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

https://www.youtube.com/watch?v=OZeJd5JPQro&t=1135s

That video will help with GRUB. Hopefully another Slacker can help you with ELILO.
 
2 members found this post helpful.
Old 05-20-2022, 12:20 AM   #3
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
hitest, you are AWESOME! You fixed the grub problem.

For everyone else- STILL LOOKING FOR INSTRUCTIONS ON HOW TO REMOVE GRUB from Slackware once it's been installed.


-----------
FYI, this was my comment in the Linode ticket that I opened:

BUT, grub is NOT part of the standard vanilla Slackware install. Many Slackers (like me and apparently you guys) are not familiar with grub.

You NEED to go back to the guy (who loves grub) who made your Slackware 15 image and have him put elilo back in as the default boot manager.

You're going to get alot of heartache from that grub image.

Last edited by arfon; 05-20-2022 at 12:26 AM.
 
2 members found this post helpful.
Old 05-20-2022, 01:33 AM   #4
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by arfon View Post
FYI, this was my comment in the Linode ticket that I opened:

BUT, grub is NOT part of the standard vanilla Slackware install. Many Slackers (like me and apparently you guys) are not familiar with grub.

You NEED to go back to the guy (who loves grub) who made your Slackware 15 image and have him put elilo back in as the default boot manager.

You're going to get alot of heartache from that grub image.
The Grub2 is virtually used by any other Linux server distribution running in x86(_64) hardware, so permit permit me to doubt that there's "a guy who loves grub" BUT rather all administrators from Linode knows well to handle the Grub2 and considers it a standard.

In other hand, Grub2 IS part of the standard vanilla Slackware install (it's package is in the A series) and many Slackers ARE familiar with Grub2.

Please do not say embarrassing things on your Linode tickets!

Last edited by LuckyCyborg; 05-20-2022 at 01:49 AM.
 
3 members found this post helpful.
Old 05-20-2022, 02:01 AM   #5
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
"In other had, Grub2 IS part of the standard vanilla Slackware install."

Grub is an optional package but, it's not setup by default (it's not even an option in setup), therefore it's not vanilla.



"The Grub2 is virtually used by any other Linux server distribution running in x86(_64) hardware,"

So is systemd, so...?


"so permit permit me to doubt that there's "a guy who loves grub" BUT rather all administrators from Linode knows to handle the Grub2 and considers it a standard."

Whomever made that Linode image went out of his way to install grub onto it. He may consider it standard ("loves grub") but, it's not a vanilla Slackware install.


"BUT rather all administrators from Linode knows to handle the Grub2"

The Linode support guys (notice the s) I talked to had no idea about grub. They even posted that in the ticket along with URLs that they found on the web:

"I can't say I delved so far into this as to do this myself, but another Slackware forum I found looked to have some potential solutions. "

Last edited by arfon; 05-20-2022 at 02:12 AM.
 
Old 05-20-2022, 02:03 AM   #6
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Best not to confuse grub2 loader with grub2 installers found in some other distributions.
Slackware does package grub2, but it does not install any of it by default.

So you can't say "Slackware broke my box" when you run grub-mkconfig and break your box.
 
2 members found this post helpful.
Old 05-20-2022, 02:08 AM   #7
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by arfon View Post
Grub is an optional package but, it's not setup by default (it's not even an option in setup), therefore it's not vanilla.
A "vanilla" Slackware installation is to install everything and the kitchen sink.

Then, also the Grub2 is installed in a "vanilla" installation of Slackware - even in the partial installs I seen being considered a decency to fully install the A series.

BTW, I for one, IF I would be the admin responding to your ticket, my response would be this:
Quote:
RTFM
I for one, I know well how to setup Grub2 and I'm NOT a Server Administrator like you.

Last edited by LuckyCyborg; 05-20-2022 at 02:17 AM.
 
Old 05-20-2022, 02:20 AM   #8
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
IF I would be the admin responding to your ticket, my response would be this:

RTFM
Isn't linode image a "spin" like fedora spin?
That's what I'd expect it to be, and if so, OP's right to blame the creator of the spin.
I mean it's creator's decision to use or not to use the options provided, in his spin.
 
2 members found this post helpful.
Old 05-20-2022, 02:29 AM   #9
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
A "vanilla" Slackware installation is to install everything and the kitchen sink.
A "FULL installation" installs everything. As soon as you start modifying how the default setup works (e.g. remove (e)lilo and install grub), it's no longer a vanilla install.



Quote:
Then, also the Grub2 is installed in a "vanilla" installation of Slackware - even in the partial installs I seen being considered a decency to fully install the A series.
See my response above.


Quote:
BTW, I for one, IF I would be the admin responding to your ticket, my response would be this:
RTFM
And I would happily shut down all of my virtual machines on your service and move to another provider.


I can tell that you're a fount of useful information. Instead of TRYING to answer the question, you just post useless chastising remarks. You are 100% the "RTFM type".


Quote:
I for one, I know well how to setup Grub2 and I'm NOT a Server Administrator like you.
Yes, I'm a server administrator who runs VANILLA Slackware. I don't install unnecessary things like grub and potentially break servers.

Last edited by arfon; 05-20-2022 at 02:33 AM.
 
1 members found this post helpful.
Old 05-20-2022, 03:04 AM   #10
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by arfon View Post
Yes, I'm a server administrator who runs VANILLA Slackware.
Good for you! Then administrate your server as you like.

The single beef I have with you is your claim regarding Slackers' widely ignorance of handling Grub2 - even in the official communications with Linode. That's not true. The Slackers widely know how to setup Grub2.

I may be blunt, BUT to be able to help you, I do not need to know your embarrassing messages sent to Linode - where apparently you claim that we are a bunch of ignorant people, BUT IF:

- you are allowed/entitled to insert/remove EFI boot variables in your server?
- your server can boot from the default /boot/efi/EFI/Boot/Bootx64.efi executable?
- you installed the ELILO in your system?
- did your server runs in the SecureBoot mode or not?
- lastly, but not last: you are certain that the GRUB2 instance (from the EFI partition) is the Slackware's one or not?

Last edited by LuckyCyborg; 05-20-2022 at 03:09 AM.
 
Old 05-20-2022, 03:06 AM   #11
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 451

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Assuming you did a basic "grub-install /dev/whatever," the EFI file will be at "/boot/efi/EFI/slackware-15.0/grubx64.efi." I'd imagine the process of switching back is as simple as removing it and then installing elilo normally.
 
1 members found this post helpful.
Old 05-20-2022, 03:12 AM   #12
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pghvlaans View Post
Assuming you did a basic "grub-install /dev/whatever," the EFI file will be at "/boot/efi/EFI/slackware-15.0/grubx64.efi." I'd imagine the process of switching back is as simple as removing it and then installing elilo normally.
I have no idea how they installed it and the Linode guys couldn't tell me either. Your suggestion sounds reasonable.


After I'm done migrating these servers from 14.2 to 15 I think I'll clone one and try your suggestion.
 
Old 05-20-2022, 03:14 AM   #13
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by pghvlaans View Post
Assuming you did a basic "grub-install /dev/whatever," the EFI file will be at "/boot/efi/EFI/slackware-15.0/grubx64.efi." I'd imagine the process of switching back is as simple as removing it and then installing elilo normally.
Well, there's the tricky part. IF the OP is not allowed to insert/remove EFI boot variables, to switch to ELILO he needs to install it manually, copying appropriately the ELILO binary as /boot/efi/EFI/slackware-15.0/grubx64.efi and editing appropriately the config file.

And this apply only IF the GRUB binary is not cryptographic signed - i.e. a custom Grub2 package running in the SecureBoot mode.
 
1 members found this post helpful.
Old 05-20-2022, 03:20 AM   #14
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 451

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Quote:
Originally Posted by LuckyCyborg View Post
Well, there's the tricky part. IF the OP is not allowed to insert/remove EFI boot variables, to switch to ELILO he needs to install it manually, copying appropriately the ELILO binary as /boot/efi/EFI/slackware-15.0/grubx64.efi and editing appropriately the config file.

And this apply only IF the GRUB binary is not cryptographic signed - i.e. a custom Grub2 package running in the SecureBoot mode.
Good point. I hadn't considered that.
 
Old 05-20-2022, 03:29 AM   #15
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,119

Rep: Reputation: Disabled
Quote:
Originally Posted by arfon View Post
Just spun up an new Slackware64 15 linode. Performed an update and the upgrade Slackware kernel doesn't work.
I assume from this that the update updated the kernel.

Once a kernel is updated, the boot loader will also need updating / amending to find the new kernel - especially if the update removed the old one! Won't make any difference if its Lilo, elilo or grub.

With grub its just a matter of running the command mentioned by others above - which can conveniently be written as a simple bash script to make it even easier! With Lilo, you need to edit lilo.conf, then run lilo, and for elilo (as I recall - been a while since I used it as I prefer grub, and elilo is no longer maintained) you need to put the chosen kernel and initrd in a special folder in /boot.

In my experience, elilo doesn't play nicely with some modern hardware - my laptop won't boot from it properly, which is why I switched to grub. Lilo doesn't work in uefi systems. Grub seems to be the only loader that works on everything, and will boot anything - hence its increasing popularity.

--
Pete
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LiveSlack and multilib and GRUB and ELILO kjhambrick Slackware 2 11-16-2021 04:20 AM
Using GRUB to boot when ELILO fails gouttegd Slackware - Installation 1 12-04-2019 04:03 AM
[SOLVED] elilo/grub? gregors Slackware 8 08-05-2018 12:02 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration