[v1,6/8] installer: Enable EFI support for loongarch64

Message ID 20260805023956.3379890-7-vincent.mc.li@gmail.com
State New
Headers
Series Add loongarch64 architecture support to IPFire |

Commit Message

Vincent Li 5 Aug 2026, 2:39 a.m. UTC
Add loongarch64 to the list of architectures that support EFI boot mode
in the installer hardware detection logic. This enables the installer
to correctly detect and configure EFI boot installation for LoongArch64
systems, which use UEFI as the standard firmware interface.

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
---
 src/installer/hw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/src/installer/hw.c b/src/installer/hw.c
index 058671624..0e8e175b3 100644
--- a/src/installer/hw.c
+++ b/src/installer/hw.c
@@ -116,7 +116,8 @@  struct hw* hw_init() {
 	// Should we install in EFI mode?
 	if ((strcmp(hw->arch, "x86_64") == 0)
 			|| (strcmp(hw->arch, "aarch64") == 0)
-			|| (strcmp(hw->arch, "riscv64") == 0))
+			|| (strcmp(hw->arch, "riscv64") == 0)
+			|| (strcmp(hw->arch, "loongarch64") == 0))
 		hw->efi = 1;
 
 	return hw;