/[smeserver]/rpms/anaconda/sme7/0019-Install-kmods-that-follow-kernel.patch
ViewVC logotype

Contents of /rpms/anaconda/sme7/0019-Install-kmods-that-follow-kernel.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Oct 27 01:24:44 2009 UTC (14 years, 6 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Update spec

1 From ac49248c508acc5fa5423bb5765a955f783e3aba Mon Sep 17 00:00:00 2001
2 From: Shad L. Lords <slords@mail.com>
3 Date: Mon, 26 Oct 2009 19:07:36 -0600
4 Subject: [PATCH] Install kmods that follow kernel
5
6 ---
7 packages.py | 21 +++++++++++++++++++++
8 1 files changed, 21 insertions(+), 0 deletions(-)
9
10 diff --git a/packages.py b/packages.py
11 index a704afb..65ef5b9 100644
12 --- a/packages.py
13 +++ b/packages.py
14 @@ -651,6 +651,9 @@ def doPreInstall(method, id, intf, instPath, dir):
15 log("selected xenU kernel")
16 foundKernel = 1
17 xenkernel = 1
18 + select(id.grpset.hdrlist, "kmod-appletalk-xenU")
19 + select(id.grpset.hdrlist, "kmod-ppp-xenU")
20 + select(id.grpset.hdrlist, "kmod-slip-xenU")
21 if selected(id.grpset.hdrlist, "gcc"):
22 select(id.grpset.hdrlist, "kernel-xenU-devel")
23
24 @@ -678,31 +681,49 @@ def doPreInstall(method, id, intf, instPath, dir):
25 if not xenkernel and largesmp_min > 0 and nthreads > largesmp_min and \
26 select(id.grpset.hdrlist, "kernel-largesmp"):
27 foundKernel = 1
28 + select(id.grpset.hdrlist, "kmod-appletalk-largesmp")
29 + select(id.grpset.hdrlist, "kmod-ppp-largesmp")
30 + select(id.grpset.hdrlist, "kmod-slip-largesmp")
31 if selected(id.grpset.hdrlist, "gcc"):
32 select(id.grpset.hdrlist, "kernel-largesmp-devel")
33 elif not xenkernel and nthreads > 1:
34 if select(id.grpset.hdrlist, "kernel-smp"):
35 foundkernel = 1
36 + select(id.grpset.hdrlist, "kmod-appletalk-smp")
37 + select(id.grpset.hdrlist, "kmod-ppp-smp")
38 + select(id.grpset.hdrlist, "kmod-slip-smp")
39 if selected(id.grpset.hdrlist, "gcc"):
40 select(id.grpset.hdrlist, "kernel-smp-devel")
41
42 if not xenkernel and iutil.needsEnterpriseKernel():
43 if select(id.grpset.hdrlist, "kernel-bigmem"):
44 foundkernel = 1
45 + select(id.grpset.hdrlist, "kmod-appletalk-bigmem")
46 + select(id.grpset.hdrlist, "kmod-ppp-bigmemsmp")
47 + select(id.grpset.hdrlist, "kmod-slip-bigmemsmp")
48
49 if not xenkernel and isys.summitavailable():
50 if select(id.grpset.hdrlist, "kernel-summit"):
51 foundkernel = 1
52 + select(id.grpset.hdrlist, "kmod-appletalk-summit")
53 + select(id.grpset.hdrlist, "kmod-ppp-summit")
54 + select(id.grpset.hdrlist, "kmod-slip-summit")
55
56 if foundkernel == 0:
57 # we *always* need to have some sort of kernel installed
58 select(id.grpset.hdrlist, 'kernel')
59 + select(id.grpset.hdrlist, "kmod-appletalk")
60 + select(id.grpset.hdrlist, "kmod-ppp")
61 + select(id.grpset.hdrlist, "kmod-slip")
62
63 if xenkernel:
64 log("deselecting kernel since we're installing xen kerenl")
65 # XXX: this is a bit of a hack, but we can't do much better
66 # with the rhel4 anaconda
67 id.grpset.hdrlist["kernel"].manual_state = -2 # MANUAL_OFF
68 + id.grpset.hdrlist["kmod-appletalk"].manual_state = -2 # MANUAL_OFF
69 + id.grpset.hdrlist["kmod-ppp"].manual_state = -2 # MANUAL_OFF
70 + id.grpset.hdrlist["kmod-slip"].manual_state = -2 # MANUAL_OFF
71
72 if (selected(id.grpset.hdrlist, "gcc") and
73 selected(id.grpset.hdrlist, "kernel")):
74 --
75 1.5.5.6
76

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed