Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 32448 Details for
Bug 51396
2004.2 beta livecd test bug (all bugs in the beta cds are tracked here)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
livecd/runscript-support/kmerge.sh
kmerge.sh (text/plain), 2.76 KB, created by
Chris Gianelloni (RETIRED)
on 2004-06-01 05:50:08 UTC
(
hide
)
Description:
livecd/runscript-support/kmerge.sh
Filename:
MIME Type:
Creator:
Chris Gianelloni (RETIRED)
Created:
2004-06-01 05:50:08 UTC
Size:
2.76 KB
patch
obsolete
>#!/bin/bash ># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo/src/catalyst/livecd/runscript-support/kmerge.sh,v 1.5 2004/05/22 05:51:06 zhen Exp $ > >die() { > echo "$1" > exit 1 >} > ># Script to build each kernel, kernel-related packages >/usr/sbin/env-update >source /etc/profile > >[ -n "${clst_ENVSCRIPT}" ] && source /tmp/envscript >export CONFIG_PROTECT="-*" >rm -f /usr/src/linux > >#set the timezone for the kernel build >rm /etc/localtime >ln -s /usr/share/zoneinfo/UTC /etc/localtime > >[ -e /var/tmp/${clst_kname}.use ] && export USE="$( cat /var/tmp/${clst_kname}.use )" || unset USE >[ -e /var/tmp/${clst_kname}.gk_kernargs ] && source /var/tmp/${clst_kname}.gk_kernargs ># Don't use pkgcache here, as the kernel source may get emerge with different USE variables ># (and thus different patches enabled/disabled.) Also, there's no real benefit in using the ># pkgcache for kernel source ebuilds. > >emerge ${clst_ksource} || exit 1 >[ ! -e /usr/src/linux ] && die "Can't find required directory /usr/src/linux" > >#if catalyst has set NULL_VALUE, extraversion wasn't specified so we skip this part >if [ "${clst_kextversion}" != "NULL_VALUE" ] >then > sed -i -e "s:EXTRAVERSION \(=.*\):EXTRAVERSION \1-${clst_kextversion}:" /usr/src/linux/Makefile >fi > >if [ -n "${clst_CCACHE}" ] >then > #enable ccache for genkernel > export PATH="/usr/lib/ccache/bin:${PATH}" >fi > ># grep out the kernel version so that we can do our modules magic >VER=`grep ^VERSION\ \= /usr/src/linux/Makefile | awk '{ print $3 };'` >PAT=`grep ^PATCHLEVEL\ \= /usr/src/linux/Makefile | awk '{ print $3 };'` >SUB=`grep ^SUBLEVEL\ \= /usr/src/linux/Makefile | awk '{ print $3 };'` >EXV=`grep ^EXTRAVERSION\ \= /usr/src/linux/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"` >clst_fudgeuname=${VER}.${PAT}.${SUB}${EXV} > >if [ -n "${clst_livecd_bootsplash}" ] >then > genkernel --bootsplash=${clst_livecd_bootsplash} ${clst_livecd_gk_mainargs} ${clst_livecd_gk_kernargs} --kerneldir=/usr/src/linux --kernel-config=/var/tmp/${clst_kname}.config --minkernpackage=/tmp/binaries/${clst_kname}.tar.bz2 all || exit 1 >else > genkernel ${clst_livecd_gk_mainargs} ${clst_livecd_gk_kernargs} --kerneldir=/usr/src/linux --kernel-config=/var/tmp/${clst_kname}.config --minkernpackage=/tmp/binaries/${clst_kname}.tar.bz2 all || exit 1 >fi > >${genkernel} >#now we merge any kernel-dependent packages >if [ -e /var/tmp/${clst_kname}.packages ] >then > for x in $( cat /var/tmp/${clst_kname}.packages ) > do > # we don't want to use the pkgcache for these since the results > # are kernel-dependent. > emerge "$x" > /sbin/modules-update --assume-kernel=${clst_fudgeuname} > done >fi > >/sbin/modules-update --assume-kernel=${clst_fudgeuname} > >#now the unmerge... (wipe db entry) >emerge -C ${clst_ksource} >unset USE
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 51396
:
31664
|
31675
|
31676
|
31693
|
31713
|
31766
|
31774
|
32447
|
32448
|
32449
|
32450
|
32451
|
32452
|
32453
|
32458
|
32459
|
32460
|
34347
|
34408
|
34409
|
34410