LinuxQuestions.org
Visit Jeremy's Blog.
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-12-2022, 12:49 PM   #31
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514

Quote:
Originally Posted by Petri Kaukasoina View Post
Or you could clean old stuff and add modules for two kernel versions in one go:
Code:
mkinitrd -c -k 5.15.19:5.16.8 -f ext4 -r /dev/sda2 -m ext4 -o /boot/initrd.gz
(mkinitrd_command_generator.sh makes a long list of modules but usually it's enough to include the module for the root file system. YMMV.)
Now that is something I was unaware of -- two kernel versions in one go! thanks
 
Old 02-12-2022, 02:40 PM   #32
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by fourtysixandtwo View Post
The other option is to just modify grub.cfg. I do the following and this only makes changes to the first menuentry section.

Code:
#modify as needed for specific kernel
/usr/sbin/grub-mkconfig | sed '/^menuentry/,/^}/{s/5.15.19/5.16.8/; s/vmlinuz\-huge\-/vmlinuz\-generic\-/}' > /boot/grub/grub.cfg
I can't use grub on my tower yet. I have to create a /uefi partition. I repurposed a hard drive that had another distro on it and the HD was set up with GPT partitioning, but I didn't pl;an on installing grub at the time, so I just have a /swap, /, and /home partition. I'll resize my home partition at some point and install grub, but I wanted to get better at installing new kernels first. Previously I just used the huge kernel and let the new kernels overwrite the huge kernel each time.
 
Old 02-12-2022, 03:14 PM   #33
gauchao
Member
 
Registered: Dec 2009
Location: Veneto
Distribution: Slackware64
Posts: 366

Rep: Reputation: 143Reputation: 143
Quote:
What does geninitrd do? I read that this is new to 15, but I am not sure what it does exactly and if it's something that I need to use.
It generates /boot/initrd.gz for the generic kernel.

At the moment, I prefer to execute mkinitrd manually and then copy both initrd.gz and vmlinuz* from /boot/ to /boot/efi/EFI/Slackware/ (and later adjust elilo.conf if I need to).
 
2 members found this post helpful.
Old 02-12-2022, 06:59 PM   #34
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,078

Rep: Reputation: 153Reputation: 153
How would you specify initrd-old.gz if you're forced to use GRUB2 (I started another thread about recent problems with LILO on NVME.)
 
  


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
Update to new kernel, do I need to build new kernel headers? deretsigernu Slackware 4 06-27-2017 03:32 AM
passwd.new, shadow.new, group.new and gshadow.new after upgrade to slackware 12.1 rhermsen Slackware 6 11-08-2008 04:59 PM
GRUB won't boot new kernel? Do I have a new kernel? Help! ttnunam Linux - General 8 11-15-2006 09:02 PM
booting new kernel. Booting new kernel dies with INIT: VFS issue, really mus335 Linux - General 0 04-21-2004 11:52 AM
A new kernel is out! A new kernel is out! A new kernel is out! Aussie Linux - General 9 11-29-2002 08:31 AM

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

All times are GMT -5. The time now is 05:22 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