[PATCH anaconda/master] Modify kernelPackages to select the right kernel for ARM systems.
Brian C. Lane
bcl at redhat.com
Tue Aug 7 23:11:46 UTC 2012
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.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20120807/ec33253e/attachment.sig>
More information about the anaconda-patches
mailing list