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 09-18-2017, 10:42 PM   #16
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 bamunds View Post
Should I also change the symlinks for system.map and config or leave them alone?
I personally leave them be. The first is for kernel debugging with the majority of users won't do and the second is mainly just to make it easy to find your config. Just remember to access the config for huge or generic rather than using the symlink.
 
Old 09-18-2017, 11:55 PM   #17
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2-Multilib XDM/FVWM3
Posts: 780

Original Poster
Rep: Reputation: 260Reputation: 260Reputation: 260
Thank you again bassmadrigal. However, if I do a diff on the two (huge and generic) of both System.map and config, clearly there are significant differences. The huge kernel config is loading everything, while generic config loads many items as modules. Also the System.map keys are significantly different. So I think it makes more sense to use the proper symlinks for both, since I don't know what calls are made to them when booting or when building other packages. For example if I were to build a new kernel locally then I normally will use a config and I'd have to remember to cat the /boot/config-generic-4.4.88 to .config of the new kernel source build location and I'd probably forget. But this is what Linux lessons are all about. In fact your comment made me go look up tldp.org the standard Linux file hierarchy and that could put us in an old thread about Slackbuilds and what directory they should be placing files in for non-default packages of the distribution. Cheers.
 
1 members found this post helpful.
Old 09-19-2017, 06:51 AM   #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 bamunds View Post
Thank you again bassmadrigal. However, if I do a diff on the two (huge and generic) of both System.map and config, clearly there are significant differences. The huge kernel config is loading everything, while generic config loads many items as modules. Also the System.map keys are significantly different. So I think it makes more sense to use the proper symlinks for both, since I don't know what calls are made to them when booting or when building other packages. For example if I were to build a new kernel locally then I normally will use a config and I'd have to remember to cat the /boot/config-generic-4.4.88 to .config of the new kernel source build location and I'd probably forget. But this is what Linux lessons are all about. In fact your comment made me go look up tldp.org the standard Linux file hierarchy and that could put us in an old thread about Slackbuilds and what directory they should be placing files in for non-default packages of the distribution. Cheers.
Of course they're different. They are for two different kernels. As I said before, the System.map file is only used in debugging kernels, which if you're not developing the kernel, it's pretty unlikely that you'll be debugging it. When I build kernels, I don't even bother to move it out of the build directory.

The config is only there for reference. As far as I know, it isn't used for anything by the system. Any program that would want to use the config of the current kernel would use /proc/config.gz as that is the config of the currently running kernel, regardless of what symlinks are used. It is generated on boot by whatever kernel was selected to boot the system. I personally think if you're going to be building a kernel, you'd want to ensure you're getting the right config and not relying that the config symlink is pointing to the file you want.

There's no reason you can't update the symlinks for these files, I was just providing reasons why you don't *need* to.
 
1 members found this post helpful.
Old 09-19-2017, 07:54 AM   #19
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
@bamunds,
relink to generic kernel's is simple:
Code:
# ( cd /; /var/log/scripts/kernel-generic-4.4.88-* )
 
  


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: Linux Kernels 4.8.3, 4.7.9 & 4.4.26 LTS Out to Patch "Dirty COW" Security Flaw LXer Syndicated Linux News 0 10-21-2016 02:51 AM
How to get QLogic Firmware Dump Devyn Linux - Server 4 02-21-2016 11:02 PM
install different kernels with conflicting kernel-firmware? terence Linux - Software 3 02-18-2016 06:30 PM
Possible to dump NIC firmware to file? szboardstretcher Linux - Networking 3 05-28-2014 02:46 PM

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

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