]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix: loongarch architecture support
authorzhuyaliang <15132211195@163.com>
Wed, 11 Jun 2025 01:34:08 +0000 (09:34 +0800)
committerLaszlo <laszlo.gombos@gmail.com>
Thu, 12 Jun 2025 21:03:37 +0000 (17:03 -0400)
dracut.sh
modules.d/70kernel-modules/module-setup.sh

index 6c1e485ddfce229777dafea0eade0bdf4267c120..1084df6084bbd492428e8ad2c3491522fa873ca1 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1629,6 +1629,9 @@ if [[ ! $print_cmdline ]]; then
             riscv64)
                 EFI_MACHINE_TYPE_NAME=riscv64
                 ;;
+            loongarch64)
+                EFI_MACHINE_TYPE_NAME=loongarch64
+                ;;
             *)
                 dfatal "Architecture '${DRACUT_ARCH:-$(uname -m)}' not supported to create a UEFI executable"
                 exit 1
index 3f1f27d3e004ce102ff5345dfa1e35b4009bdb0e..cd3ca5dbd29c364116bea073795c12220a2037e9 100755 (executable)
@@ -137,6 +137,7 @@ installkernel() {
         [[ $arch == x86_64 ]] && arch=x86
         [[ $arch == s390x ]] && arch=s390
         [[ $arch == aarch64 ]] && arch=arm64
+        [[ $arch == loongarch64 ]] && arch=loongarch
         hostonly='' instmods "=crypto"
         hostonly=$(optional_hostonly) instmods "=arch/$arch/crypto" "=drivers/crypto"
     fi