fix patch10000 cannot be applied on loongarch64
This commit is contained in:
parent
7c12285446
commit
3ee298c70c
@ -3,13 +3,14 @@ From: Huang Yang <huangyang@loongson.cn>
|
|||||||
Date: Thu, 25 Apr 2024 12:14:01 +0000
|
Date: Thu, 25 Apr 2024 12:14:01 +0000
|
||||||
Subject: [PATCH] add loongarch support for anaconda
|
Subject: [PATCH] add loongarch support for anaconda
|
||||||
|
|
||||||
|
Signed-off-by: yueyuankun <yueyuankun@kylinos.cn>
|
||||||
---
|
---
|
||||||
pyanaconda/modules/storage/bootloader/base.py | 9 +++--
|
pyanaconda/modules/storage/bootloader/base.py | 9 +++--
|
||||||
pyanaconda/modules/storage/bootloader/efi.py | 33 ++++++++++++++++++-
|
pyanaconda/modules/storage/bootloader/efi.py | 35 ++++++++++++++++++-
|
||||||
.../modules/storage/bootloader/factory.py | 4 +++
|
.../modules/storage/bootloader/factory.py | 4 +++
|
||||||
.../modules/storage/devicetree/fsset.py | 6 +++-
|
.../modules/storage/devicetree/fsset.py | 6 +++-
|
||||||
pyanaconda/modules/storage/platform.py | 10 ++++++
|
pyanaconda/modules/storage/platform.py | 10 ++++++
|
||||||
5 files changed, 57 insertions(+), 5 deletions(-)
|
5 files changed, 59 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
diff --git a/pyanaconda/modules/storage/bootloader/base.py b/pyanaconda/modules/storage/bootloader/base.py
|
diff --git a/pyanaconda/modules/storage/bootloader/base.py b/pyanaconda/modules/storage/bootloader/base.py
|
||||||
index d40086d..191b8af 100644
|
index d40086d..191b8af 100644
|
||||||
@ -34,7 +35,7 @@ index d40086d..191b8af 100644
|
|||||||
# Does /usr have its own device? If so, we need to tell dracut
|
# Does /usr have its own device? If so, we need to tell dracut
|
||||||
usr_device = storage.mountpoints.get("/usr")
|
usr_device = storage.mountpoints.get("/usr")
|
||||||
diff --git a/pyanaconda/modules/storage/bootloader/efi.py b/pyanaconda/modules/storage/bootloader/efi.py
|
diff --git a/pyanaconda/modules/storage/bootloader/efi.py b/pyanaconda/modules/storage/bootloader/efi.py
|
||||||
index 6135699..96450dc 100644
|
index 5a28676..d2fffd2 100644
|
||||||
--- a/pyanaconda/modules/storage/bootloader/efi.py
|
--- a/pyanaconda/modules/storage/bootloader/efi.py
|
||||||
+++ b/pyanaconda/modules/storage/bootloader/efi.py
|
+++ b/pyanaconda/modules/storage/bootloader/efi.py
|
||||||
@@ -28,7 +28,7 @@ from pyanaconda.product import productName
|
@@ -28,7 +28,7 @@ from pyanaconda.product import productName
|
||||||
@ -46,10 +47,10 @@ index 6135699..96450dc 100644
|
|||||||
|
|
||||||
|
|
||||||
class EFIBase(object):
|
class EFIBase(object):
|
||||||
@@ -169,6 +169,37 @@ class Aarch64EFIGRUB(EFIGRUB):
|
@@ -170,6 +170,39 @@ class Aarch64EFIGRUB(EFIGRUB):
|
||||||
super().__init__()
|
|
||||||
self._packages64 = ["grub2-efi-aa64", "shim-aa64"]
|
self._packages64 = ["grub2-efi-aa64", "shim-aa64"]
|
||||||
|
|
||||||
|
|
||||||
+class LOONGARCHEFIGRUB(EFIGRUB):
|
+class LOONGARCHEFIGRUB(EFIGRUB):
|
||||||
+ _efi_binary = "grubloongarch64.efi"
|
+ _efi_binary = "grubloongarch64.efi"
|
||||||
+ stage2_is_valid_stage1 = False
|
+ stage2_is_valid_stage1 = False
|
||||||
@ -81,11 +82,13 @@ index 6135699..96450dc 100644
|
|||||||
+ elif self.stage1_device.type == "mdarray": # pylint: disable=no-member
|
+ elif self.stage1_device.type == "mdarray": # pylint: disable=no-member
|
||||||
+ for parent in self.stage1_device.parents: # pylint: disable=no-member
|
+ for parent in self.stage1_device.parents: # pylint: disable=no-member
|
||||||
+ self._add_single_efi_boot_target(parent)
|
+ self._add_single_efi_boot_target(parent)
|
||||||
|
+
|
||||||
|
+
|
||||||
class ArmEFIGRUB(EFIGRUB):
|
class ArmEFIGRUB(EFIGRUB):
|
||||||
_serial_consoles = ["ttyAMA", "ttyS"]
|
_serial_consoles = ["ttyAMA", "ttyS"]
|
||||||
|
_efi_binary = "\\grubarm.efi"
|
||||||
diff --git a/pyanaconda/modules/storage/bootloader/factory.py b/pyanaconda/modules/storage/bootloader/factory.py
|
diff --git a/pyanaconda/modules/storage/bootloader/factory.py b/pyanaconda/modules/storage/bootloader/factory.py
|
||||||
index 8aa3afb..2fb9993 100644
|
index 4815685..643f633 100644
|
||||||
--- a/pyanaconda/modules/storage/bootloader/factory.py
|
--- a/pyanaconda/modules/storage/bootloader/factory.py
|
||||||
+++ b/pyanaconda/modules/storage/bootloader/factory.py
|
+++ b/pyanaconda/modules/storage/bootloader/factory.py
|
||||||
@@ -114,6 +114,10 @@ class BootLoaderFactory(object):
|
@@ -114,6 +114,10 @@ class BootLoaderFactory(object):
|
||||||
@ -124,7 +127,7 @@ index 4db3759..6f85a37 100644
|
|||||||
if device.format.check and mountpoint == "/":
|
if device.format.check and mountpoint == "/":
|
||||||
passno = 1
|
passno = 1
|
||||||
diff --git a/pyanaconda/modules/storage/platform.py b/pyanaconda/modules/storage/platform.py
|
diff --git a/pyanaconda/modules/storage/platform.py b/pyanaconda/modules/storage/platform.py
|
||||||
index d0aa7ca..3a238f9 100644
|
index 20f2c4d..2bb8e41 100644
|
||||||
--- a/pyanaconda/modules/storage/platform.py
|
--- a/pyanaconda/modules/storage/platform.py
|
||||||
+++ b/pyanaconda/modules/storage/platform.py
|
+++ b/pyanaconda/modules/storage/platform.py
|
||||||
@@ -287,6 +287,14 @@ class Aarch64EFI(EFI):
|
@@ -287,6 +287,14 @@ class Aarch64EFI(EFI):
|
||||||
@ -142,10 +145,10 @@ index d0aa7ca..3a238f9 100644
|
|||||||
class ArmEFI(EFI):
|
class ArmEFI(EFI):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -486,6 +494,8 @@ def get_platform():
|
@@ -522,6 +530,8 @@ def get_platform():
|
||||||
return Aarch64EFI()
|
|
||||||
elif arch.is_arm():
|
|
||||||
return ArmEFI()
|
return ArmEFI()
|
||||||
|
elif arch.is_riscv64():
|
||||||
|
return RISCV64EFI()
|
||||||
+ elif arch.is_loongarch():
|
+ elif arch.is_loongarch():
|
||||||
+ return LOONGARCHEFI()
|
+ return LOONGARCHEFI()
|
||||||
else:
|
else:
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
%define _empty_manifest_terminate_build 0
|
%define _empty_manifest_terminate_build 0
|
||||||
Name: anaconda
|
Name: anaconda
|
||||||
Version: 36.16.5
|
Version: 36.16.5
|
||||||
Release: 33
|
Release: 34
|
||||||
Summary: Graphical system installer
|
Summary: Graphical system installer
|
||||||
License: GPLv2+ and MIT
|
License: GPLv2+ and MIT
|
||||||
URL: http://fedoraproject.org/wiki/Anaconda
|
URL: http://fedoraproject.org/wiki/Anaconda
|
||||||
@ -58,9 +58,7 @@ Patch9024: bugfix-revert-Set-default-entry-to-the-BLS-id-instead-of-the-entry
|
|||||||
Patch9025: bugfix-import-new-BlockDev.patch
|
Patch9025: bugfix-import-new-BlockDev.patch
|
||||||
Patch9026: bugfix-fix-custom-storage-chinese-tip.patch
|
Patch9026: bugfix-fix-custom-storage-chinese-tip.patch
|
||||||
|
|
||||||
%ifarch loongarch64
|
|
||||||
Patch10000: 0001-add-loongarch-support-for-anaconda.patch
|
Patch10000: 0001-add-loongarch-support-for-anaconda.patch
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%define dasbusver 1.3
|
%define dasbusver 1.3
|
||||||
@ -317,6 +315,12 @@ update-desktop-database &> /dev/null || :
|
|||||||
%{_prefix}/libexec/anaconda/dd_*
|
%{_prefix}/libexec/anaconda/dd_*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 23 2024 yueyuankun <yueyuankun@kylinos.cn> - 36.16.5-34
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: fix patch10000 cannot be applied on loongarch64
|
||||||
|
|
||||||
* Thu May 09 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 36.16.5-33
|
* Thu May 09 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 36.16.5-33
|
||||||
- Type:feature
|
- Type:feature
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user