[PATCH anaconda/master] Modify kernelPackages to select the right kernel for ARM systems.
David Marlin
dmarlin at redhat.com
Tue Aug 7 23:13:34 UTC 2012
Brian C. Lane wrote:
> On Tue, Aug 07, 2012 at 05:56:38PM -0500, d.marlin wrote:
>> From: "d.marlin" <dmarlin at redhat.com>
>>
>> Signed-off-by: David A. Marlin <dmarlin at redhat.com>
>> ---
>> pyanaconda/packaging/__init__.py | 6 ++++++
>> 1 files changed, 6 insertions(+), 0 deletions(-)
>>
>> diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py
>> index 8c5a560..0a47ff6 100644
>> --- a/pyanaconda/packaging/__init__.py
>> +++ b/pyanaconda/packaging/__init__.py
>> @@ -600,6 +600,12 @@ class PackagePayload(Payload):
>> def kernelPackages(self):
>> from pyanaconda.isys import isPaeAvailable
>> kernels = ["kernel"]
>> +
>> + # most ARM systems use platform-specific kernels
>> + if iutil.isARM():
>> + if anaconda.platform.armMachine is not None:
>> + kernels = ["kernel-%s" % anaconda.platform.armMachine]
>> +
>> if isPaeAvailable():
>> kernels.insert(0, "kernel-PAE")
>
> I think the isPae should go above the isARM check> I don't think there's
> currently a case where isPae would be true on ARM, but it would be safer
> if it wasn't able to insert kernel-PAE.
>
> If you agree, I can swap that around when I commit it.
Agreed.
Thank you,
d.marlin
==========
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
More information about the anaconda-patches
mailing list