LinuxQuestions.org
Help answer threads with 0 replies.
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 03-09-2015, 06:43 AM   #16
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Original Poster
Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750

Quote:
So - if lilo is ran by Slackpkg after a kernel upgrade, one would still have to rebuild the initrd and run lilo again, right?
Yes - unless you use the slackpkg custom function I linked in post #1.
That was the point of my initial post. Upgrading a system running the generic kernel can now be handled by slackpkg with prompts to update initrd and to run lilo without any additional manual steps.
 
Old 03-09-2015, 04:29 PM   #17
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by mlangdn View Post
I still do it manually - never knew. Maybe I'll still do it manually so I never forget.
I always do it manually too. I have been burned by kernel install scripts, never on slackware, but on other distros, and dont trust them.
If i see a kernel upgrade listed in slackpkg, i back up my lilo.conf, /lib/modules dir and kernel source dir before continuing and then usually immediately rebuild the kernell to my liking right after its first boot.
 
Old 03-09-2015, 04:41 PM   #18
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by fogpipe View Post
If i see a kernel upgrade listed in slackpkg, i back up my lilo.conf, /lib/modules dir and kernel source dir before continuing and then usually immediately rebuild the kernell to my liking right after its first boot.
Out of curiosity, wouldn't it be easier to just download the .config Pat provides for the newer kernel and then grab the source yourself and build it that way? Seems like it would remove the unnecessary step of installing a package containing a kernel you have no intention of using.

For me, kernels are pretty much the only thing that I'll build outside of Slackware's package management. Right now, I'm running 3.18.8 and I have several older kernels that I used after upgrading the stock 3.10.17.
 
Old 03-09-2015, 04:53 PM   #19
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by bassmadrigal View Post
Out of curiosity, wouldn't it be easier to just download the .config Pat provides for the newer kernel and then grab the source yourself and build it that way? Seems like it would remove the unnecessary step of installing a package containing a kernel you have no intention of using.

I like booting to its default config to get a good look and its easy enough to just install the new kernel and reboot to do that. I also like having the default kernel installed, with its default config, as a back up and baseline.
Maybe ill give your method some thought tho.
Also, i have put some time into the .config im currently using and the source downloads through slackpkg just as well as it would from kernel.org.

Last edited by fogpipe; 03-09-2015 at 05:01 PM.
 
Old 03-09-2015, 08:52 PM   #20
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
Quote:
Originally Posted by GazL View Post
The generic-smp and huge-smp also share their modules which means they must share a LOCALVERSION string.
Ah, that's the part I'm missing. Thanks! I usually go with something like vmlinuz${LOCALVERSION}-${VERSION} for my naming scheme and was wondering why not just set LOCALVERSION to "-generic-smp".

Quote:
Originally Posted by GazL View Post
This is why it looks like you have redundant information in the naming, but its not. (Except on the package file version field, where _smp really is unnecessary, but that's just cosmetic).
Well, it is still redundant on the /boot files since KERNNAME includes LOCALVERSION, right? Every time I go edit lilo.conf and type "smp" twice, I ask myself why I'm typing it twice
 
Old 03-10-2015, 04:36 AM   #21
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by elyk View Post
Ah, that's the part I'm missing. Thanks! I usually go with something like vmlinuz${LOCALVERSION}-${VERSION} for my naming scheme and was wondering why not just set LOCALVERSION to "-generic-smp".
I prefer vmlinuz-${VERSION}${LOCALVERSION} because that is how the modules directory gets named and it keeps it all consistent. My scheme results in packages looking like this:
Code:
PACKAGE NAME:     kernel-3.18.y-3.18.9-x86_64-1_local
COMPRESSED PACKAGE SIZE:     32M
UNCOMPRESSED PACKAGE SIZE:     136M
PACKAGE LOCATION: ./kernel-3.18.y-3.18.9-x86_64-1_local.txz
PACKAGE DESCRIPTION:
kernel-3.18.y: Kernel 3.18.9
kernel-3.18.y:
kernel-3.18.y: This is an all-in-one package that contains
kernel-3.18.y: a linux kernel, its modules and its build directory.
kernel-3.18.y:
kernel-3.18.y: Package includes:
kernel-3.18.y:   /boot/vmlinuz-3.18.9
kernel-3.18.y:   /boot/System.map-3.18.9
kernel-3.18.y:   /lib/modules/3.18.9/...
kernel-3.18.y:   /usr/obj/3.18.9/...
kernel-3.18.y:
LOCALVERSION if used would go on the end of the version on all 4 files/locations, and after the .y on the package name.
/usr/obj is non-standard and allows me to build and package a kernel with read-only sources by using an out of tree build directory.


Quote:
Originally Posted by elyk View Post
Well, it is still redundant on the /boot files since KERNNAME includes LOCALVERSION, right? Every time I go edit lilo.conf and type "smp" twice, I ask myself why I'm typing it twice
Yes, on reflection you're quite right, that bit could go without causing a collision as LOCALVERSION will still differentiate them. Guess I wasn't thinking straight.

Last edited by GazL; 03-10-2015 at 05:31 AM.
 
  


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
LXer: Box PCs take a stroll down Intel's 'Cedar Trail' LXer Syndicated Linux News 0 01-07-2012 03:11 AM
Spamming via snail mail ??? bigjohn General 9 06-12-2007 04:26 AM
Why is Mandrake/KDE getting slower and slower? KWTm Mandriva 12 09-28-2004 09:43 PM
KDE + LDAP = snail speed xyz098 Linux - Networking 2 06-08-2004 09:24 PM
why does KDE + LDAP = snail speed ? xyz098 Linux - Software 0 06-07-2004 10:45 PM

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

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