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 02-19-2021, 09:27 AM   #31
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162

Quote:
So could I just symlink vmlinuz to the generic kernel?
Yes but --

When the kernel packages are updated in the /patches branch, both the generic and huge kernels are updated. As the update process usually is alphabetical, and the letter h comes after the letter g, the huge kernel package is updated after the generic package.

Both package doinst.sh scripts modify the vmlinuz sym link. Thus the huge kernel modifies the sym link last.

The problem could be resolved by removing and not updating the huge package. That is doable. I like to keep the huge package installed as an emergency boot kernel, but that is not a requirement.

The problem can be resolved by using the full file name in grub.cfg. That avoids using the vmlinuz sym link. This is what I have done for many years. When the kernel packages are updated in the /patches branch I update grub.cfg with a sed command and reboot. Unlike lilo, GRUB does not require any compiling after editing grub.cfg.

I block automatic updates of the kernel in the slackpkg configuration. That way there are no surprises. Actually I use a shell script to install new kernels because when I update kernels I like to keep the old version for some days as an emergency backup.

There has been some discussion in this forum about removing the huge package altogether, but only discussion. My opinion only, but I like the idea of eliminating huge. I don't think any other distro maintains a "huge" kernel.
 
Old 02-19-2021, 11:10 AM   #32
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
There is a /boot/vmlinuz-generic that is a symlink to the generic kernel that can be used in a grub menu entry
 
Old 02-19-2021, 01:20 PM   #33
truepatriot76
Member
 
Registered: Apr 2014
Location: California, USA
Distribution: slackware64-current
Posts: 232

Rep: Reputation: 195Reputation: 195
I delete the symlinks as part of my kernel management script. That way, grub picks up the full kernel description & version and displays in the in the menu. Useful if you have multiple kernel versions installed. Whether this is adverse in any way, is unknown to me (as in other programs searching for /boot/vmlinuz etc.) but has worked well for me over the past year. It gives a nice clean and descriptive grub menu. Probably a better way to do it, is to modify my grub script to ignore the symlinks.
 
  


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
[SOLVED] Problem upgrading to new kernel 5.3.0-45-generic from 4.18.0-25-generic fgonza1971 Linux - Laptop and Netbook 1 04-01-2020 02:54 PM
[SOLVED] [slackware novice] setting generic kernel for grub2 gnus Slackware 8 07-05-2016 09:04 AM
[SOLVED] setting up initrd / generic kernel in Grub2...can't load generic Ubunoob001 Slackware 12 03-20-2015 07:32 AM
kernel-generic and kernel-generic-smp ?? liuyug Slackware - Installation 5 06-01-2014 07:01 PM
[SOLVED] Can't Get GRUB2 To Boot Slack Generic Kernel Sumguy Slackware 22 05-15-2014 03:07 PM

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

All times are GMT -5. The time now is 03:28 PM.

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