LinuxQuestions.org
Review your favorite Linux distribution.
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 06-04-2013, 02:01 PM   #1
fieldaj
LQ Newbie
 
Registered: Aug 2006
Posts: 8

Rep: Reputation: 5
links in /boot


I use the generic-smp kernel, so I create an initrd. After every kernel upgrade I change three links in /boot (config, System.map, and vmlinuz) to point to the generic kernel rather than the huge kernel. My question: is this advisable or not required? Thanks
 
Old 06-04-2013, 02:21 PM   #2
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
In Lilo if you use "image=/boot/vmlinuz" then it is important the vmlinuz exists in /boot and is either the desired kernel or is a link to the desired kernel.

Your system will boot fine without making changes to the System.map or config links but I believe some debugging avenues will not be available to you. I always change all three links each time I make a kernel name change.

You can test this for yourself by having both the old and new kernel in Lilo (different "label=" values) and experiment. That way if the new kernel fails you can boot from the old kernel. Have the older kernel in lilo use the name of the file ("image=vmlinuz-generic-3.2.29") instead of the link to the file ("image=vmlinuz").
 
Old 06-04-2013, 02:25 PM   #3
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Install generic after huge (or don't install huge) and you won't have to fix the links.
 
Old 06-04-2013, 02:36 PM   #4
fieldaj
LQ Newbie
 
Registered: Aug 2006
Posts: 8

Original Poster
Rep: Reputation: 5
Thank you Tracy Tiger and ruario. That answers my question completely.
 
Old 06-05-2013, 07:51 AM   #5
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Simple re-execute doinst.sh script of kernel-generic packages stored at /var/log/scripts/fill-package-name from / (root) directory as superuser (root) to relink /boot/{vmlinuz,System.map,config} and rerun lilo, for ex.:
Code:
# cd /; /var/log/scripts/kernel-generic-3.2.45-*
# lilo

Last edited by bormant; 06-05-2013 at 07:53 AM.
 
1 members found this post helpful.
Old 06-05-2013, 06:48 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
I think the best way to avoid this issue is to ignore the symlinks and use the full kernel name in your lilo.conf (or elilo.conf as the case may be).

You can't go wrong that way.
 
Old 06-06-2013, 04:30 AM   #7
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by rkelsen View Post
I think the best way to avoid this issue is to ignore the symlinks and use the full kernel name in your lilo.conf
... and edit /etc/lilo.conf on every kernel upgrade.
But with symlinks and huge+generic kernels installed:
Code:
# slackpkg update; slackpkg upgrade kernel
# cd /; /var/log/scripts/kenel-generic-*; cd -
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k 3.2.45 | bash
# lilo
# reboot
Additionally, unique named rescue huge kernel copy stays in /etc/lilo.conf and /boot so upgradepkg doesn't remove it.
 
1 members found this post helpful.
Old 06-06-2013, 05:29 AM   #8
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
You could shorten one of those lines!
Code:
# (cd /;/var/log/scripts/kernel-generic-*)
P.S. Neat trick with re-executing the doinst.sh script.

Last edited by ruario; 06-06-2013 at 05:32 AM. Reason: added postscript
 
  


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
web page/links links/links vendtagain Linux - Newbie 2 09-19-2009 08:13 PM
Gentoo-Im dumb and deleted /boot/boot Grub Says: Error 26 : Too many symbolic links smehi Linux - Software 5 06-24-2006 06:25 AM
Links and freeware for dual boot? Trinity22 General 1 08-25-2005 11:44 AM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 12:10 PM
symbolic links in /boot itsjustme Slackware 4 05-19-2003 01:29 PM

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

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