Gentoo Archives: gentoo-dev

From: Peter Ruskin <aoyu93@×××××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] using more than one kernel
Date: Thu, 05 Jun 2003 07:56:10
Message-Id: 200306050856.09026.aoyu93@dsl.pipex.com
In Reply to: Re: [gentoo-dev] using more than one kernel by Troy Dack
1 On Thursday 05 Jun 2003 08:10, Troy Dack wrote:
2 > On Thu, 2003-06-05 at 10:36, Peter Ruskin wrote:
3 > > On Monday 02 Jun 2003 13:03, Georgi Georgiev wrote:
4 > > > > The tail end of my build-kernel scripts now looks like this:
5 > > > > AUTOCLEAN="no" ACCEPT_KEYWORDS="~x86" kernel-deps | xargs
6 > > > > emerge
7 > > >
8 > > > probably
9 > > >
10 > > > kernel-deps | env AUTOCLEAN=no ACCEPT_KEYWORDS="~x86" xargs
11 > > > emerge
12 > > >
13 > > > would be better. I am pretty sure that AUTOCLEAN=no is not set
14 > > > for xargs the way you wrote it.
15 > >
16 > > AUTOCLEAN="no" is never accepted. The only thing that works here
17 > > is adding:
18 > > CONFIG_PROTECT="/lib/modules"
19 > > to /etc/env.d/00basic
20 > >
21 > > ...and this to /etc/init.d/bootmisc:
22 >
23 > Add this to /etc/conf.d/local.start, that way you don't have to keep
24 > remembering to not update or merge changes with baselayout changes
25
26 That's what I did first, but local starts after all the modules are
27 loaded, so it's too late.
28 >
29 > > # Ensure that /usr/src/linux points to booted kernel
30 > > if [ "/usr/src/linux-$(uname -r)" != "$(ls -l /usr/src/linux|cut
31 > > -f2 -d\>|cut -f2,3,4 -d' ')" ]
32 > > then
33 > > if [ "$( file /usr/src/linux | grep 'symbolic link' )" != "" ]
34 > > then
35 > > rm -f /usr/src/linux
36 > > ln -s /usr/src/linux-$(uname -r) /usr/src/linux
37 > > fi
38 > > fi
39 >
40 > and an alternative:
41 >
42 > if [ -L /usr/src/linux ]
43 > then
44 > rm -f /usr/src/linux
45 > ln -s /usr/src/linux-$(uname r) /usr/src/linux
46 > fi
47
48 Yes, much better, thanks Troy. I wish this would get included in
49 baselayout, right after booting.
50
51 Peter
52
53
54 --
55 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] using more than one kernel Georgi Georgiev <chutz@×××.net>