SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,104
Rep:
GRUB2 in Slackware? Discussion and Instruction.
I've asked that the very informative grub related posts be moved here. Whether that happens or not, we'll see.
Edit in: This thread title reminds me of the old Berkeley Farms radio commercials. Berkeley Farms sold milk and other dairy products. Found a web site, but don't know if they are actually still in business.
As you may know, Berkeley, California is the home of the University of California, and is located in the urban San Francisco Bay Area.
Each radio commercial ended with the voice of Mel Blanc saying, "Farms in Berkeley?! Mooooo..."
Seems kind of dumb today, but it brings back a lot of memories.
Last edited by cwizardone; 08-12-2023 at 01:36 PM.
May I express my opinion? No? Thought so.
Anyhow, GRUB(2) is the most pointless and useless piece of software for a distro like Slackware (or Gentoo). There are tens of megabytes of junk installed to the hard drive doing what ..? All this may be great for Ubuntu with automated kernel upgrades, but we are not running Ubuntu here.
Nowadays we have EFI boot and every mobo has boot menu. Install as many EFI stub kernels as you want and don't waste your time with a bootloader which is more like an OS. You can even multiboot using this mobo menu, you can have a bootloader(s) there for another OS which cannot boot directly from EFI as Linux does.
Or for gods sake, if you just must have a bootloader then Syslinux is absolutely great for legacy boot, LiLo is to be considered, too.
Fair enough but I guess I should also have clarified - as Pat alluded to switching to GRUB; so I assumed just GRUB as perhaps GRUB2 is too bleeding edge still for Slackware? I don't know.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,104
Original Poster
Rep:
Quote:
Originally Posted by Jeebizz
Fair enough but I guess I should also have clarified - as Pat alluded to switching to GRUB; so I assumed just GRUB as perhaps GRUB2 is too bleeding edge still for Slackware? I don't know.
May I express my opinion? No? Thought so.
Anyhow, GRUB(2) is the most pointless and useless piece of software for a distro like Slackware (or Gentoo). There are tens of megabytes of junk installed to the hard drive doing what ..? All this may be great for Ubuntu with automated kernel upgrades, but we are not running Ubuntu here.
Nowadays we have EFI boot and every mobo has boot menu. Install as many EFI stub kernels as you want and don't waste your time with a bootloader which is more like an OS. You can even multiboot using this mobo menu, you can have a bootloader(s) there for another OS which cannot boot directly from EFI as Linux does.
Or for gods sake, if you just must have a bootloader then Syslinux is absolutely great for legacy boot, LiLo is to be considered, too.
I like GRUB2 just about as much as you do, but the fact is that at this point it is the only bootloader for Linux that actually works in all circumstances. And if that's the case, then supporting old, rotten bootloaders is a waste of limited resources.
I believe that even booting EFI stub you'll run into the same black screen issues that occur with elilo on some UEFI systems.
Fair enough but I guess I should also have clarified - as Pat alluded to switching to GRUB; so I assumed just GRUB as perhaps GRUB2 is too bleeding edge still for Slackware? I don't know.
Code:
GRUB 2 has replaced what was formerly known as GRUB
(i.e. version 0.9x), which has, in turn, become GRUB Legacy.
Enhancements to GRUB are still being made, but the current
released versions are quite usable for normal operation.
GRUB Legacy is no longer being developed.
mkinitrd -c Clear the existing initrd tree (by default in /boot/initrd‐tree/)
first. If this is not done, running mkinitrd will add additional
modules to the existing initrd.
what will happen if custom generic kernels exist in the system?
mkinitrd -c Clear the existing initrd tree (by default in /boot/initrd‐tree/)
first. If this is not done, running mkinitrd will add additional
modules to the existing initrd.
what will happen if custom generic kernels exist in the system?
This makes a good point. I do not see any reason why GRUB2, once installed, ever needs to be futzed with again. Is this not one of the selling points of GRUB? Unlike LILO, the files referenced in the GRUB config file can be completely changed out without any requirement to reinstall or reconfigure GRUB. But in order for this to work, *the filenames must remain the same*.
Now, I know that LuckyCyborg loves versioned filenames as used elsewhere almost as much as he believes I love LILO, elilo, etc, but I don't think that's how we want to do this. I think that initrd.gz will be fine as an unversioned file as it's always been. The kernel file will be versioned (as always), but with an unversioned symlink pointing to it (and used in the GRUB config). Then when a new kernel (and symlink) is installed, and the initrd updated, everything should just work concerning GRUB. Versioning a Slackware initrd doesn't make a lot of sense anyway - it can support multiple different kernel versions with a single initrd. What's the filename version supposed to be then?
The scripts that come with GRUB2 as well as things like os-prober are probably not relevant for our purposes as we just want a simple starting configuration. Since we don't plan to mess with it later, you'll be able to change it (or not) without a future update plowing over the top of it.
Also, this method allows managing GRUB2 from a foreign operating system without having to reconfigure anything there after a Slackware kernel/initrd update.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.