|
|
34c36b |
From ec8e27664a6a551647ace23bfd5d16036db95bd6 Mon Sep 17 00:00:00 2001
|
|
|
34c36b |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
34c36b |
Date: Tue, 7 Aug 2018 15:11:56 +0100
|
|
|
34c36b |
Subject: [PATCH 1/4] arch: arm: drop omap specifics for partitioning
|
|
|
34c36b |
|
|
|
34c36b |
We've long stopped supporting or using any specifics around OMAP
|
|
|
34c36b |
ARM machines and all ARM platforms support the extlinux means of
|
|
|
34c36b |
doing things one way or another.
|
|
|
34c36b |
|
|
|
34c36b |
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
|
|
|
34c36b |
---
|
|
|
34c36b |
blivet/arch.py | 4 ----
|
|
|
34c36b |
blivet/devices/partition.py | 3 ---
|
|
|
34c36b |
2 files changed, 7 deletions(-)
|
|
|
34c36b |
|
|
|
34c36b |
diff --git a/blivet/arch.py b/blivet/arch.py
|
|
|
34c36b |
index 20fe4f57..f30b2d8b 100644
|
|
|
34c36b |
--- a/blivet/arch.py
|
|
|
34c36b |
+++ b/blivet/arch.py
|
|
|
34c36b |
@@ -352,10 +352,6 @@ def is_ipseries():
|
|
|
34c36b |
return is_ppc() and get_ppc_machine() in ("iSeries", "pSeries")
|
|
|
34c36b |
|
|
|
34c36b |
|
|
|
34c36b |
-def is_omap_arm():
|
|
|
34c36b |
- return is_arm() and get_arm_machine() == "omap"
|
|
|
34c36b |
-
|
|
|
34c36b |
-
|
|
|
34c36b |
def get_arch():
|
|
|
34c36b |
"""
|
|
|
34c36b |
:return: The hardware architecture
|
|
|
34c36b |
diff --git a/blivet/devices/partition.py b/blivet/devices/partition.py
|
|
|
34c36b |
index 47ff547b..623e1c9d 100644
|
|
|
34c36b |
--- a/blivet/devices/partition.py
|
|
|
34c36b |
+++ b/blivet/devices/partition.py
|
|
|
34c36b |
@@ -421,9 +421,6 @@ class PartitionDevice(StorageDevice):
|
|
|
34c36b |
# On ARM images '/' must be the last partition.
|
|
|
34c36b |
if self.format.mountpoint == "/":
|
|
|
34c36b |
weight = -100
|
|
|
34c36b |
- elif (arch.is_omap_arm() and
|
|
|
34c36b |
- self.format.mountpoint == "/boot/uboot" and self.format.type == "vfat"):
|
|
|
34c36b |
- weight = 5000
|
|
|
34c36b |
elif arch.is_ppc():
|
|
|
34c36b |
if arch.is_pmac() and self.format.type == "appleboot":
|
|
|
34c36b |
weight = 5000
|
|
|
34c36b |
--
|
|
|
34c36b |
2.18.0
|
|
|
34c36b |
|
|
|
34c36b |
|
|
|
34c36b |
From be145b613ceea45edf4e2d522d28113300d706fa Mon Sep 17 00:00:00 2001
|
|
|
34c36b |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
34c36b |
Date: Thu, 16 Aug 2018 14:32:19 +0100
|
|
|
34c36b |
Subject: [PATCH 2/4] arch: arm: drop get_arm_machine function
|
|
|
34c36b |
|
|
|
34c36b |
The get_arm_machine function was used when we had to have detection for which
|
|
|
34c36b |
arm specific kernel to install. The last userr of this was the omap check for
|
|
|
34c36b |
special partitioning which is no longer used due to extlinux support so we can
|
|
|
34c36b |
now drop this function too.
|
|
|
34c36b |
|
|
|
34c36b |
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
|
|
|
34c36b |
---
|
|
|
34c36b |
blivet/arch.py | 22 ----------------------
|
|
|
34c36b |
blivet/flags.py | 2 --
|
|
|
34c36b |
2 files changed, 24 deletions(-)
|
|
|
34c36b |
|
|
|
34c36b |
diff --git a/blivet/arch.py b/blivet/arch.py
|
|
|
34c36b |
index f30b2d8b..55ce8108 100644
|
|
|
34c36b |
--- a/blivet/arch.py
|
|
|
34c36b |
+++ b/blivet/arch.py
|
|
|
34c36b |
@@ -33,7 +33,6 @@ from __future__ import absolute_import
|
|
|
34c36b |
|
|
|
34c36b |
import os
|
|
|
34c36b |
|
|
|
34c36b |
-from .flags import flags
|
|
|
34c36b |
from .storage_log import log_exception_info
|
|
|
34c36b |
|
|
|
34c36b |
import logging
|
|
|
34c36b |
@@ -182,27 +181,6 @@ def is_aarch64():
|
|
|
34c36b |
return os.uname()[4] == 'aarch64'
|
|
|
34c36b |
|
|
|
34c36b |
|
|
|
34c36b |
-def get_arm_machine():
|
|
|
34c36b |
- """
|
|
|
34c36b |
- :return: The ARM processor variety type, or None if not ARM.
|
|
|
34c36b |
- :rtype: string
|
|
|
34c36b |
-
|
|
|
34c36b |
- """
|
|
|
34c36b |
- if not is_arm():
|
|
|
34c36b |
- return None
|
|
|
34c36b |
-
|
|
|
34c36b |
- if flags.arm_platform:
|
|
|
34c36b |
- return flags.arm_platform
|
|
|
34c36b |
-
|
|
|
34c36b |
- arm_machine = os.uname()[2].rpartition('.')[2]
|
|
|
34c36b |
-
|
|
|
34c36b |
- if arm_machine.startswith('arm'):
|
|
|
34c36b |
- # @TBD - Huh? Don't you want the arm machine name here?
|
|
|
34c36b |
- return None
|
|
|
34c36b |
- else:
|
|
|
34c36b |
- return arm_machine
|
|
|
34c36b |
-
|
|
|
34c36b |
-
|
|
|
34c36b |
def is_cell():
|
|
|
34c36b |
"""
|
|
|
34c36b |
:return: True if the hardware is the Cell platform, False otherwise.
|
|
|
34c36b |
diff --git a/blivet/flags.py b/blivet/flags.py
|
|
|
34c36b |
index 18401218..4e26d82f 100644
|
|
|
34c36b |
--- a/blivet/flags.py
|
|
|
34c36b |
+++ b/blivet/flags.py
|
|
|
34c36b |
@@ -57,8 +57,6 @@ class Flags(object):
|
|
|
34c36b |
self.jfs = True
|
|
|
34c36b |
self.reiserfs = True
|
|
|
34c36b |
|
|
|
34c36b |
- self.arm_platform = None
|
|
|
34c36b |
-
|
|
|
34c36b |
self.gpt = False
|
|
|
34c36b |
|
|
|
34c36b |
# for this flag to take effect,
|
|
|
34c36b |
--
|
|
|
34c36b |
2.18.0
|
|
|
34c36b |
|
|
|
34c36b |
|
|
|
34c36b |
From 34595cfef911f9512558b02216eaf58d0fdd6786 Mon Sep 17 00:00:00 2001
|
|
|
34c36b |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
34c36b |
Date: Thu, 16 Aug 2018 14:35:30 +0100
|
|
|
34c36b |
Subject: [PATCH 3/4] Aarch64 platforms: Fix gpt defaults for 64 bit arm
|
|
|
34c36b |
platforms
|
|
|
34c36b |
|
|
|
34c36b |
The 46165f589d commit added support for msdos needed on some aarch64 devices
|
|
|
34c36b |
but it messed up the gpt defaults, this was fixed in 4908746c3a but this now
|
|
|
34c36b |
defaults back to msdos so we put in an aarch64 options to put gpt first again.
|
|
|
34c36b |
|
|
|
34c36b |
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
|
|
|
34c36b |
---
|
|
|
34c36b |
blivet/formats/disklabel.py | 2 ++
|
|
|
34c36b |
1 file changed, 2 insertions(+)
|
|
|
34c36b |
|
|
|
34c36b |
diff --git a/blivet/formats/disklabel.py b/blivet/formats/disklabel.py
|
|
|
34c36b |
index 44f9834c..e93a4c13 100644
|
|
|
34c36b |
--- a/blivet/formats/disklabel.py
|
|
|
34c36b |
+++ b/blivet/formats/disklabel.py
|
|
|
34c36b |
@@ -223,6 +223,8 @@ class DiskLabel(DeviceFormat):
|
|
|
34c36b |
label_types = ["msdos", "gpt"]
|
|
|
34c36b |
if arch.is_pmac():
|
|
|
34c36b |
label_types = ["mac"]
|
|
|
34c36b |
+ elif arch.is_aarch64():
|
|
|
34c36b |
+ label_types = ["gpt", "msdos"]
|
|
|
34c36b |
elif arch.is_efi() and not arch.is_aarch64():
|
|
|
34c36b |
label_types = ["gpt"]
|
|
|
34c36b |
elif arch.is_s390():
|
|
|
34c36b |
--
|
|
|
34c36b |
2.18.0
|
|
|
34c36b |
|
|
|
34c36b |
|
|
|
34c36b |
From 461623d49963618a30bd960d48c6d34f1d076917 Mon Sep 17 00:00:00 2001
|
|
|
34c36b |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
34c36b |
Date: Thu, 16 Aug 2018 14:38:16 +0100
|
|
|
34c36b |
Subject: [PATCH 4/4] arm: add support for EFI on ARMv7
|
|
|
34c36b |
|
|
|
34c36b |
We now can support EFI for ARMv7 so add/enabled the checks for ARM too.
|
|
|
34c36b |
|
|
|
34c36b |
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
|
|
|
34c36b |
---
|
|
|
34c36b |
blivet/formats/disklabel.py | 2 ++
|
|
|
34c36b |
1 file changed, 2 insertions(+)
|
|
|
34c36b |
|
|
|
34c36b |
diff --git a/blivet/formats/disklabel.py b/blivet/formats/disklabel.py
|
|
|
34c36b |
index e93a4c13..e13ab2f8 100644
|
|
|
34c36b |
--- a/blivet/formats/disklabel.py
|
|
|
34c36b |
+++ b/blivet/formats/disklabel.py
|
|
|
34c36b |
@@ -225,6 +225,8 @@ class DiskLabel(DeviceFormat):
|
|
|
34c36b |
label_types = ["mac"]
|
|
|
34c36b |
elif arch.is_aarch64():
|
|
|
34c36b |
label_types = ["gpt", "msdos"]
|
|
|
34c36b |
+ elif arch.is_efi() and arch.is_arm():
|
|
|
34c36b |
+ label_types = ["msdos", "gpt"]
|
|
|
34c36b |
elif arch.is_efi() and not arch.is_aarch64():
|
|
|
34c36b |
label_types = ["gpt"]
|
|
|
34c36b |
elif arch.is_s390():
|
|
|
34c36b |
--
|
|
|
34c36b |
2.18.0
|
|
|
34c36b |
|