On Sat, Aug 16, 2014 at 09:43:27AM +0100, Neil Bothwick wrote
> On Sat, 16 Aug 2014 00:00:52 -0400, Walter Dnes wrote:
> 
> > > AFAICT the only time depmod runs is during the "modules_install"
> > > phase. Do you do "make modules_install" when building a kernel?  
> > 
> >   I'm lazy.  I have 2 scripts sitting in /usr/src which I run from
> > /usr/src/linux.  After running "make menuconfig" or "make oldconfig" I
> > run ../makeover which goes like so...
> > 
> > #!/bin/bash
> > make && \
> > make modules_install && \
> 
> So it's self-inflicted :)
> 
> Try replacing that last line with something like 
> 
> (grep -q 'CONFIG_MODULES is not set' .config || make modules_install)

  Ouch.  I just reakized that the "&&" means that the cp commands are
not executed.  So I did the following from the commandline from
directory /usr/src/linux

cp arch/x86_64/boot/bzImage /boot/kernel-test
cp System.map /boot/System.map-test
cp .config /boot/config-test

  Then I...
* added a "Test" entry to lilo.conf
* ran "lilo -R test"
* rebooted

  I am indeed running kernel 3.14.14 this time...

[thimk][root][/usr/src/linux] uname -a
Linux thimk 3.14.14-gentoo #1 SMP Wed Aug 13 18:13:23 EDT 2014 x86_64 Intel(R) 
Core(TM) i7 CPU M 620 @ 2.67GHz GenuineIntel GNU/Linux

I still get...

[thimk][root][/usr/src/linux] (grep -q 'CONFIG_MODULES is not set'
.config || make modules_install)
  INSTALL drivers/char/kcopy/kcopy.ko
  INSTALL drivers/thermal/x86_pkg_temp_thermal.ko
  DEPMOD  3.14.14-gentoo
/usr/src/linux-3.14.14-gentoo/scripts/depmod.sh: line 57:  2426
Segmentation fault      "$DEPMOD" "$@" "$KERNELRELEASE" $SYMBOL_PREFIX
make: *** [_modinst_post] Error 139

  I did a short test run.  X seems to run OK.  I'll try to put it
through a more thorough test later.  I'll be out of town, and mostly
disconnected from the net Tuesday through Friday, so things will have to
wait.

  Out of sheer curiosity, will there be a kernel 3.14.15.29 <G>?

-- 
Walter Dnes <[email protected]>
I don't run "desktop environments"; I run useful applications

Reply via email to