LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Learn How To Compile The Linux Kernel (https://www.linuxquestions.org/questions/linux-newbie-8/learn-how-to-compile-the-linux-kernel-788899/)

Quakeboy02 02-13-2010 01:49 PM

Quote:

Originally Posted by AwesomeMachine (Post 3862717)
Although, when I'm working on Debian, I use Debian sources, make-kpkg, update-initramfs, and update-grub.

Aren't the update-initramfs and update-grub done for you by dpkg -i?

brianL 02-13-2010 01:51 PM

Eric Hameleers (alien BOB) recommends building it in /usr/src. When a top Slacker and a top kernel developer disagree, what's a poor newbie like me to do? :)

http://alien.slackbook.org/dokuwiki/...kernelbuilding

damgar 02-13-2010 02:02 PM

For what it's worth I follow Bob on this. It's generally a safe method, and doesn't involve removing anything, whereas some guides I have read have people removing the old kernel, before trying to boot the new one.

Also, Bob's remarks regarding using /usr/src/ are qualified by the line
Quote:

I believe this advice is irrelevant for Slackware and the way it has it's kernel headers and glibc package setup.
I can't speak for another distro, but Bob's remarks imply that there may be a distro out there, for which, building in /usr/src/ may not be as safe?

From the above link:
Quote:

There is a debate whether you should build your kernels in the /usr/src tree or somewhere entirely else.
The cause is an old post by Linus Torvalds (from July 2000) where he advises people to build from within their home directory. I believe this advice is irrelevant for Slackware and the way it has it's kernel headers and glibc package setup. So, my advice is to ignore this old post by Linus and install your kernel sources into /usr/src if you want. The kernel building location is purely a matter of personal preference.

brianL 02-13-2010 02:12 PM

Quote:

Originally Posted by damgar (Post 3862739)
For what it's worth I follow Bob on this.

Yeah, definitely. If it wasn't safe, he wouldn't recommend it.


All times are GMT -5. The time now is 01:20 AM.