View previous topic :: View next topic |
Author |
Message |
PeeJay n00b

Joined: 15 Aug 2004 Posts: 46 Location: Sydney, Australia
|
Posted: Sun Oct 16, 2016 11:11 am Post subject: Forcing re-compile of initramfs? |
|
|
How do I force a recompile of everything that goes into the initramfs (using genkernel-next)? Have have changed my system from an intel to amd cpu.
I recompiled @world and the kernel in advance, but forgot about the initramfs, so I'm getting a kernel panic. I managed to work around the issue by using another machine with less aggressive compiler flags to build the same kernel, but I'd like to fix it.
I've looked everywhere but I can't find where the files are cached.
Would it be considered a bug with genkernel that there is no command option to totally recreate the initramfs?
Thanks. |
|
Back to top |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 7564 Location: Goose Creek SC
|
|
Back to top |
|
 |
Zucca Veteran


Joined: 14 Jun 2007 Posts: 1579 Location: KUUSANKOSKI, Finland
|
Posted: Sun Oct 16, 2016 2:34 pm Post subject: |
|
|
There are man pages and --help too.
genkernel --help | head: | Gentoo Linux Genkernel 64
Usage:
genkernel [options] action
Available Actions:
all Build all steps
bzImage Build only the kernel
initramfs Build only the ramdisk/initramfs
kernel Build only the kernel and modules |
_________________ ..: Zucca :..
Code: | ERROR: '--failure' is not an option. Aborting... |
|
|
Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10387 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Oct 16, 2016 4:47 pm Post subject: |
|
|
Well it depends on whether you mean to rebuild the initramfs or recompile everything in it. Rebuilding it is a simple genkernel built-in command: Code: | genkernel initramfs | but this doesn't rebuild the executables in the initramfs. Genkernel builds those but caches the binaries in /var/cache/genkernel. Erasing the contents of that directory (no need to erase its subdirectories) will force Genkernel to recompile them: Code: | rm /var/cache/genekernel/*
genkernel initramfs | @DONAHUE, --mrproper will not erase this cache and also causes the recompile of the whole kernel, something the OP didn't ask for.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 7564 Location: Goose Creek SC
|
Posted: Sun Oct 16, 2016 11:37 pm Post subject: |
|
|
Thanks. _________________ Defund the FCC. |
|
Back to top |
|
 |
PeeJay n00b

Joined: 15 Aug 2004 Posts: 46 Location: Sydney, Australia
|
Posted: Mon Oct 17, 2016 1:18 am Post subject: |
|
|
John R. Graham wrote: | Code: | rm /var/cache/genekernel/* |
|
That was what I needed. Thanks! |
|
Back to top |
|
 |
|