From Gentoo Wiki
Jump to: navigation, search
This is a talk page. Please add newer comments below older ones, and sign your comments using four tildes (~~~~). When adding a new section (at the bottom of the page), please mark it as "open for discussion" by using {{talk|open}} so it will show up in the list of open discussions.

About 'make modules_prepare'

Talk status
This discussion is still ongoing.

Someone who knows better, please clarify: When exactly should make modules_prepare be run? Lee (talk) 13:28, 14 February 2015 (UTC)

I'm also a bit confused as to the importance of the make modules_prepare command. I see from /usr/src/linux/Makefile that the target results in calls to other targets but once getting into the rabbit hole, I also started finding myself a tad confused. — The preceding unsigned comment was added by Cajacaliente (talkcontribs) 13 May 2015‎
"Me too": While I think I know when make modules_prepare should be run, I'm not sure when emerge @module-rebuild should be run relative to the building of the kernel. The article is unnecessarily confusing about this, since the order it presents the information is:
  • configure the kernel (section 5)
  • make modules_prepare "may be" necessary before building the kernel (6th section, 1st "Important" box)
  • don't forget to reconfigure the bootloader and initramfs (6th section, 2nd "Important" box)
  • follow the manual configuration article to build the kernel (6th section, only line of regular text)
  • "If the kernel has not been built", make modules_prepare before installing external modules (8th section, 1st "root" command box)
  • emerge @module-rebuild to rebuild kernel-module packages (8th section, 2nd "root" command box)
It would help immensely if the concepts were introduced strictly in the order the commands should actually be run.
I assume the proper order is:
  1. configure the kernel
  2. make modules_prepare if any kernel modules have already been installed via emerge (or whatever)
  3. build and install the kernel using make, make modules_install, and make install
  4. emerge @module-rebuild if step #2 was necessary
  5. configure the bootloader and initramfs
  6. (double-check everything, including what modules are autoloaded, and) reboot
Can someone who knows for sure please clarify this? Also, I know step #4 won't actually "do anything" if the command is run when it is not necessary; is that also true of step #2? Finally, should Kernel/Configuration also mention make modules_prepare? - dcljr (talk) 08:36, 26 October 2017 (UTC)

Add genkernel instructions

Talk status
This discussion is done as of October 26, 2017.

I originally used genkernel to install the kernel. The important part to me is updating the new config from the old kernel. I think there should be a section on updating to the new kernel using genkernel.--Moaxcp (talk) 18:09, 21 May 2015 (UTC)

Good point. I'll add this to my list of thing to do. Also, don't forget to use a signature following your commend on discussion pages! :) --Maffblaster (talk) 17:59, 21 May 2015 (UTC)
Have you read the Genkernel? Does it contain the information you are looking for? --Maffblaster (talk) 18:30, 21 May 2015 (UTC)