LinuxQuestions.org
Visit Jeremy's Blog.
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 08-06-2015, 06:54 AM   #1
Hasek39
Member
 
Registered: Jul 2015
Location: Pittsburgh, PA, US
Distribution: Slackware
Posts: 120

Rep: Reputation: Disabled
Switching to generic-kernel with initrd.gz


I'm using Slackware 14.1 with the 3.10.17 kernel and had a question how to proof that system uses generic-kernel for booting. After I had created an initrd.gz with /usr/share/mkinitrd/mkinitrd_command_generator.sh command and add line initrd = /boot/initrd.gz to /etc/lilo.conf is it necessary to substitute image = /boot/vmlinuz line with image = /boot/vmlinuz-generic-3.10.17? Or should I leave image = /boot/vmlinuz untouched?
 
Old 08-06-2015, 07:00 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6660Reputation: 6660Reputation: 6660Reputation: 6660Reputation: 6660Reputation: 6660Reputation: 6660Reputation: 6660Reputation: 6660Reputation: 6660Reputation: 6660
You need to have your lilo.conf entry point to the correct kernel. /boot/vmlinuz is just a symlink, so you can either change the symlink to point it to the generic kernel or you can change the image line in lilo.conf to point to the actual kernel instead of vmlinuz. Don't forget to run lilo afterwards.

I'd keep an entry in there for the huge kernel until you know you have it working properly.
 
Old 08-06-2015, 07:12 AM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
It's generally a good idea to replace the /boot/vmlinuz symlink in /etc/lilo.conf by the "real thing", e. g. /boot/vmlinuz-huge-3.10.17, /boot/vmlinuz-smp-3.10.17-smp, /boot/vmlinuz-generic-3.10.17, etc.

Here's a little HOWTO based on Slackware 14.0:

http://www.microlinux.fr/microlinux/...rnel-HOWTO.txt

Cheers,

Niki
 
Old 08-06-2015, 07:13 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,438

Rep: Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783
Our BDFL is now distributing generic kernel packages that, when installed, create a symlink in /boot so that /boot/vmlinuz points to the generic kernel.
If you use slackpkg to perform upgrades, and have the huge kernel packages blacklisted, then you can safely use the /boot/vmlinuz entry in lilo.conf
Warning! - You need to create a new initrd and rerun lilo after a kernel upgrade if you do this.
http://www.linuxquestions.org/questi...0/#post5327847

Last edited by allend; 08-06-2015 at 07:18 AM.
 
  


Reply

Tags
boot, kernel, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] setting up initrd / generic kernel in Grub2...can't load generic Ubunoob001 Slackware 12 03-20-2015 07:32 AM
[SOLVED] Trouble with generic kernel + initrd on GPT disk kikinovak Slackware 15 03-09-2013 03:17 AM
[SOLVED] Generic and custom kernel work in 14.0, but I have a question about initrd. tfrei Slackware 3 10-02-2012 09:28 AM
Generic kernel + initrd not working rpedrica Slackware 12 06-22-2010 10:17 AM
Generic SMP kernel with no initrd? songangel Slackware 8 03-26-2009 06:12 PM

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

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