Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
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.
Hi,
I am little confused about Grub in Slackware 15.0
1. Is it Grub or Grub2?
2. Now my system is booted via elilo. Is it possible to
configure and install Grub2 directly into the system without
installing the theme from Slackbuild and making a bootable usb stick
first?
grub-install will create the /boot/grub directory if it doesn't exist, grub-mkconfig will throw a error message if /boot/grub doesn't exist. Grub-install only needs to be ran once during installation, grub-mkconfig needs be run everytime there is a kernel update if you don't use symlinks.
Last edited by colorpurple21859; 05-10-2022 at 11:02 AM.
Opensuse, PclinuxOs, Fedora based distros use /boot/grub2, grub2-install, grub2-mkconfig
Most other distros use including Slackware use /boot/grub. grub-install, grub-mkconfig
Opensuse, PclinuxOs, Fedora based distros use /boot/grub2, grub2-install, grub2-mkconfig
Most other distros use including Slackware use /boot/grub. grub-install, grub-mkconfig
They name these files grub2 because they used to ship both of them..
It doesn't matter in Slackware, since it does not use/install grub or grub-legacy.
What is packaged and shipped on Slackware DVD is grub-2.x so grub v2 or grub2 in short.
They name these files grub2 because they used to ship both of them..
It doesn't matter in Slackware, since it does not use/install grub or grub-legacy.
What is packaged and shipped on Slackware DVD is grub-2.x so grub v2 or grub2 in short.
I beleive the op was referring to the grub command to use, to invoke grub2 commands on Fedora based distros among others are
Code:
grub2-install
grub2-mkconfig
and the grub boot loader files go into /boot/grub2,
Slackware and others use
Code:
grub-install
grub-mkconfig
and the grub files go in /boot/grub.
Last edited by colorpurple21859; 05-10-2022 at 03:06 PM.
grub-install will create the /boot/grub directory if it doesn't exist, grub-mkconfig will throw a error message if /boot/grub doesn't exist. Grub-install only needs to be ran once during installation, grub-mkconfig needs be run everytime there is a kernel update if you don't use symlinks.
The package already contains /boot/grub/.
In some cases you may need to run grub-install more than once.
grub-mkconfig needs be run everytime there is a kernel update if you don't use symlinks.
Hey, I missed this thing somehow..
It does not need to be run in Slackware, because Slackware kernel update packages use symlinks.
And if you compile a custom kernel, the resulting file will be called vmlinuz, so that is what you'd specify in grub config.
Furthermore, naming the files properly is very important on EFI partition which is FAT so it can't use symlinks.
So if you had named them properly you would not need mkconfig on each update, whoever told you that is either a debian or redhat user.
I’m well aware of all the exceptions to this rule. The key words are “if you don’t use symlinks” . There are those that prefer not to use the symlinks, neither name custom kernels as vmlinuz, or put kernels on the efi partition.
Last edited by colorpurple21859; 05-11-2022 at 05:25 AM.
I’m well aware of all the exceptions to this rule. The key words are “if you don’t use symlinks” . There are those that prefer not to use the symlinks, neither name custom kernels as vmlinuz, or put kernels on the efi partition.
But if it's a corner case, it cannot be marked as "Slackware does this".
If one doesn't use symlinks by choice, then it's also one's choice to use mkconfig on update or not.
It's not like the distributor forces mkconfig on you, which is the standard case with those other distros.
Same thing with grub-install, if the installer does not do that how can "Slackware use it" ?
It requires the user to exit the installer, drop to shell, and type the command.
Otherwise, one could say "ln -s grub-install grub128-install && grub128-install" is what "Slackware use" because it just happens to work like that.
In conclusion, it's the user who does it and not the distributor (I'd prefer to keep it that way TBH).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.