Gentoo Archives: gentoo-dev

From: Troy Dack <troy@××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] using more than one kernel
Date: Thu, 05 Jun 2003 07:09:54
Message-Id: 1054797007.4171.6.camel@carbon.internal.lan
In Reply to: Re: [gentoo-dev] using more than one kernel by Peter Ruskin
1 On Thu, 2003-06-05 at 10:36, Peter Ruskin wrote:
2 > On Monday 02 Jun 2003 13:03, Georgi Georgiev wrote:
3 > > > The tail end of my build-kernel scripts now looks like this:
4 > > > AUTOCLEAN="no" ACCEPT_KEYWORDS="~x86" kernel-deps | xargs emerge
5 > >
6 > > probably
7 > >
8 > > kernel-deps | env AUTOCLEAN=no ACCEPT_KEYWORDS="~x86" xargs emerge
9 > >
10 > > would be better. I am pretty sure that AUTOCLEAN=no is not set for
11 > > xargs the way you wrote it.
12 >
13 > AUTOCLEAN="no" is never accepted. The only thing that works here is
14 > adding:
15 > CONFIG_PROTECT="/lib/modules"
16 > to /etc/env.d/00basic
17 >
18 > ...and this to /etc/init.d/bootmisc:
19
20 Add this to /etc/conf.d/local.start, that way you don't have to keep
21 remembering to not update or merge changes with baselayout changes
22
23 > # Ensure that /usr/src/linux points to booted kernel
24 > if [ "/usr/src/linux-$(uname -r)" != "$(ls -l /usr/src/linux|cut -f2
25 > -d\>|cut -f2,3,4 -d' ')" ]
26 > then
27 > if [ "$( file /usr/src/linux | grep 'symbolic link' )" != "" ]
28 > then
29 > rm -f /usr/src/linux
30 > ln -s /usr/src/linux-$(uname -r) /usr/src/linux
31 > fi
32 > fi
33 >
34
35 and an alternative:
36
37 if [ -L /usr/src/linux ]
38 then
39 rm -f /usr/src/linux
40 ln -s /usr/src/linux-$(uname r) /usr/src/linux
41 fi
42
43
44 --
45 Troy Dack http://linux.tkdack.com
46 <troy@××××××.com> http://webportage.sf.net
47
48 Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4D90BE3C
49 Key fingerprint = 1F3D 6C15 16AA 09D5 0C96 92E5 FD89 16F9 4D90 BE3C
50
51
52 --
53 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] using more than one kernel Peter Ruskin <aoyu93@×××××××××.com>