LinuxQuestions.org
Review your favorite Linux distribution.
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-06-2015, 09:02 AM   #1
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Thanks PV! - My apologies for being slower than a snail on a Sunday stroll


I have just made the much belated discovery that ever since the pi kernel (Fri Aug 8 19:02:50 UTC 2014), the doinst.sh in the kernel-generic package has been creating a symlink 'ln -sf vmlinuz-generic-<version> vmlinuz-generic'.

Doh - As a slackpkg, lilo and generic kernel user, after every kernel upgrade since I have still being telling slackpkg No to running lilo after a kernel update, then editing /etc/lilo.conf so that the 'image=' pointed to the new generic kernel image before running lilo manually.
Changing /etc/lilo.conf so that 'image=/boot/vmlinuz-generic' will save that editing step.
Combined with my custom slackpkg function http://www.linuxquestions.org/questi...ml#post4957315 my kernel upgrades suddenly got a whole lot simpler and less error prone.

Much appreciated!
 
Old 03-06-2015, 10:07 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Yep, small changes like this can make all the difference.

I'm still not keen on the fact that both the 'huge' and 'generic' packages will try and create the vmlinuz -> vmlinuz-$KERNNAME.$VERSION symlink, thus making order of installation significant and potentially overwriting it should the admin have pointed it at something else, but that issue can be worked around by simply never using it (assuming you're aware of the potential gotcha in the first place).
 
Old 03-06-2015, 01:31 PM   #3
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,844

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
I still do it manually - never knew. Maybe I'll still do it manually so I never forget.
 
1 members found this post helpful.
Old 03-06-2015, 02:24 PM   #4
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I guess it is convention that vmlinuz exists in /boot. If the admin wanted to point to that (rather than a specific kernel package), and had both installed, then the thing to do would be to blacklist the other package. Otherwise, if someone was wanting vmlinuz-generic, and did a package update for both, and rerun lilo, they'd get vmlinuz-huge on the next boot. (through the vmlinuz pointer last update) Doesn't seem like a good idea Probably should remove the other package and just have one kernel.
 
Old 03-06-2015, 05:19 PM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Original Poster
Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
I just have the kernel-huge, kernel-huge-smp, kernel-generic-smp and kernel-modules-smp blacklisted in /etc/slackpkg/blacklist on my 64bit setup so that I only get the kernel-generic packages during an upgrade conducted with slackpkg. Works for me.

Last edited by allend; 03-06-2015 at 05:24 PM.
 
Old 03-06-2015, 06:10 PM   #6
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
I'm still not keen on the fact that both the 'huge' and 'generic' packages will try and create the vmlinuz -> vmlinuz-$KERNNAME.$VERSION symlink, thus making order of installation significant
This is a bizarre timing for your comment (and this whole thread), I discovered this very thing like two days ago.
 
Old 03-06-2015, 06:22 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I use the symlinked kernel method for Grub and it does save you the trouble of rerunning Grub when you update anything kernel-wise.
 
Old 03-06-2015, 07:57 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
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.
Yea, I do all my lilo stanzas manually and never rely on the symlink after the initial install.

It seems like everytime I relax my iron grip on such things and rely on the conveniences it comes back to bite and confuse me - mostly confuse!
 
1 members found this post helpful.
Old 03-07-2015, 05:11 AM   #9
commandlinegamer
Member
 
Registered: Dec 2007
Posts: 163

Rep: Reputation: 51
Are these kernel updates in the current tree? I haven't seen any new kernels in the patches for 14.1.
 
Old 03-08-2015, 11:40 PM   #10
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
On 32-bit, does anyone else find it strange that "smp" appears in both the package name and the version? This shows up in the package name and in the files installed to /boot. Does putting "smp" in the version serve some kind of purpose I'm not aware of?
 
Old 03-09-2015, 01:09 AM   #11
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware64
Posts: 583

Rep: Reputation: 242Reputation: 242Reputation: 242
elyk,
Pretty sure the "smp" (for symmetric multiprocessing) is simply there as a label.
So that you know what's in the tin ;-)
 
Old 03-09-2015, 01:21 AM   #12
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
Right, but why is it there twice?

kernel-generic-smp-3.10.17_smp-i686-3

/boot/System.map-generic-smp-3.10.17-smp
/boot/config-generic-smp-3.10.17-smp
/boot/vmlinuz-generic-smp-3.10.17-smp
 
Old 03-09-2015, 02:12 AM   #13
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
My guess: if it was named kernel-generic-3.10.17_smp-i686-3, it would conflict with kernel-generic-3.10.17-i486-3, or is at least easier to manage (package managers, SlackBuilds etc.). I think the smp LOCALVERSION is there so that you know you're running a smp kernel when doing uname -a or so.

Last edited by lems; 03-09-2015 at 02:19 AM.
 
1 members found this post helpful.
Old 03-09-2015, 06:08 AM   #14
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
edit: I'm rewriting this post as I kind of went tangential first time.

On 32bit there are essentially 4 kernels: generic, huge, generic-smp and huge-smp.

The generic and huge kernels share their modules, which means they must share a LOCALVERSION string. The LOCALVERSION for these is "" (i.e. blank)

The generic-smp and huge-smp also share their modules which means they must share a LOCALVERSION string. The LOCALVERSION string for these is "-smp"

Kernel image files are named following this:
vmlinuz-${KERNNAME}-${VERSION}${LOCALVERSION}
The modules in lib modules also use $LOCALVERSION
/lib/modules/${VERSION}${LOCALVERSION}

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).

Personally, I've always found the sharing of modules a little funky, but it seems to work for Pat (albeit resulting in the unusual naming we see). I use a different naming scheme for my locally built kernel packages:
kernel-3.18.y-3.18.7-x86_64-1_local
If I use LOCALVERSION it gets appended to the packagename (right after the .y)

Under my scheme you'd end up with:
kernel-3.18.y-generic-smp-3.18.7-x86_64-1_local: /boot/vmlinuz-3.18.7-generic-smp /lib/modules/3.18.7-generic-smp
kernel-3.18.y-generic-3.18.7-x86_64-1_local: /boot/vmlinuz-3.18.7-generic /lib/modules/3.18.7-generic
kernel-3.18.y-huge-smp-3.18.7-x86_64-1_local: /boot/vmlinuz-3.18.7-huge-smp /lib/modules/3.18.7-huge-smp
kernel-3.18.y-huge-3.18.7-x86_64-1_local: /boot/vmlinuz-3.18.7-huge /lib/modules/3.18.7-huge

which looks cleaner, but wouldn't be able to share the modules like Pat chooses to do (but then if it were me, I'd not bother with both a huge and generic kernel anyway, so it wouldn't be an issue for me).

(that post made more sense this time )

Last edited by GazL; 03-09-2015 at 10:50 AM.
 
3 members found this post helpful.
Old 03-09-2015, 06:34 AM   #15
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,844

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
So - if lilo is ran by Slackpkg after a kernel upgrade, one would still have to rebuild the initrd and run lilo again, right?

I'm still going to do it manually. That will save me from going all potty-mouthed while I'm booting from the dvd to save me from myself.
 
1 members found this post helpful.
  


Reply


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
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 06:11 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