View previous topic :: View next topic |
Author |
Message |
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Aug 30, 2007 7:14 pm Post subject: Why do the Handbook kernel install instructions not just... |
|
|
...use "make install"?
I've always wondered about that. It's simpler, the System.map-* and config-* files don't waste much space and are sometimes useful, and the symlinks are very nice. In particular, the symlinks can be used to reduce the complexity of the grub.conf on initial install. There could be a nice explanation in the Handbook contrasting the simple method (e.g., "make install" and simple grub.conf) vs. the precise control method (e.g., copying just what you need and specifying explicit filenames in grub.conf).
(I'd even be willing to rewrite the section.)
Just wondering.
- John |
|
Back to top |
|
|
der.gecko Tux's lil' helper
Joined: 13 Jul 2007 Posts: 127 Location: de
|
Posted: Thu Aug 30, 2007 8:04 pm Post subject: |
|
|
true, but with the actual handbook the user (probably a newbie) should get a better understanding how his gentoo-linux works! |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Aug 30, 2007 8:12 pm Post subject: |
|
|
I liked the symlink handling in the manual kernel build "make install" so much that I added identical functionality to genkernel (released in genkernel-3.4.9).
- John |
|
Back to top |
|
|
Mark Clegg Apprentice
Joined: 05 Jan 2004 Posts: 270 Location: ZZ9 Plural Z Alpha
|
Posted: Thu Aug 30, 2007 8:12 pm Post subject: |
|
|
IIRC when I was using gentoo on sparc a while ago, "make install" wasn't an option on that arch.
By using the long-hand method, the install doc's remain arch-independent. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Sep 02, 2007 4:52 pm Post subject: |
|
|
Thought it might be something like that. However, seems a little silly. "make install" is the simplest thing that the kernel build does. Why shouldn't it work across all architectures?
- John |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Sep 02, 2007 5:08 pm Post subject: |
|
|
Anyway, it should be:
Code: | make clean bzImage modules modules_install |
Suggesting "shortcut" commands, which don't perform a full recompilation, is why we see loads of "unknown symbol in kernel module" moans in threads. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Sep 02, 2007 5:28 pm Post subject: |
|
|
For brevity, I was not including the whole handbook when all I was talking about was the step that places the compiled kernel image into /boot.
It just seemed odd that the handbooks would not take advantage of the built-in automation of the manual kernel build process and thatwas less error prone than Code: | cp arch/i386/boot/bzImage /boot/kernel-2.6.19-gentoo-r5 | which is what is stated in the handbook, but the beginner must have read carefully enough to know to modify the kernel name based on what the version actually is. Seems like the Handbook method might be more error prone.
Similarly, it seems to me that there are less chances for error in grub.conf if the kernel name was always "vmlinuz" (at least for the inital setup of grub.conf), which is the name of the symlink that "make install" makes.
- John |
|
Back to top |
|
|
owner66 n00b
Joined: 21 Aug 2007 Posts: 18
|
Posted: Sun Sep 02, 2007 7:23 pm Post subject: |
|
|
I really do agree with where jrg is going on this. I had never done anything with Linux before, and settled on gentoo. I have sucessfully installed it from the livecd and am up and going. however, once i start looking into the hows and whys of what is really going on in the system, it seems like the handbook install overly complicates things. Or, at least, the handbook install should go into more detail about what you have really done after doing the livecd install. It is very confusing with all the cp arch/ stuff and bzImage stuff
In other words, going from the live cd install, and understanding how and why, should be covered in the "where to go from here?" section.
All I get is "If you are interested in optimizing your system for desktop use, or you want to learn how to configure your system to be a full working desktop system.."
What? why would i do that? I just installed, it's not fully working?
A tutorial on what this above statement means is needed IMHO.
ds _________________ Clean the contacts by vigorously rubbing the electrical contacts on the printed circuit board with a pencil eraser. Tape the 16K RAM pack to the computer to prevent loss of contact due to accidental movement. |
|
Back to top |
|
|
neysx Retired Dev
Joined: 27 Jan 2003 Posts: 795
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Sep 03, 2007 12:10 pm Post subject: |
|
|
Ah. Many thanks, Xavier. It didn't make sense that this wouldn't have been discussed before. Guess I didn't search well enough.
- John |
|
Back to top |
|
|
|