]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Add check for aarch64 to the arm kernel module list
authorPeter Robinson <pbrobinson@gmail.com>
Thu, 23 Mar 2017 14:59:15 +0000 (14:59 +0000)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 12 Jun 2017 14:09:01 +0000 (16:09 +0200)
This adds the same list of drivers we use for arm platforms for
aarch64 too, also add the DMA drivers there too as they can add
sigficant performance for some storage/usb and often need to be
present when the storage drivers load.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Cherry-picked from: 917e1b6b5b2669a30bce69061686adbb6abc5e35
Resolves: #1459277

modules.d/90kernel-modules/module-setup.sh

index 0a414eaf9f78bb85ffc4c3e3504e790c6ade27d0..c4bf5af5a1634d48e2969c0a6d938cae42a2c5ff 100755 (executable)
@@ -52,13 +52,14 @@ installkernel() {
             "=drivers/input/serio" \
             "=drivers/input/keyboard"
 
-        if [[ "$(uname -p)" == arm* ]]; then
-            # arm specific modules
+       if [[ "$(uname -m)" == arm* || "$(uname -m)" == aarch64 ]]; then
+            # arm/aarch64 specific modules
             hostonly='' instmods \
                connector-hdmi connector-dvi encoder-tfp410 \
                encoder-tpd12s015 i2c-tegra gpio-regulator \
                as3722-regulator orion-ehci ehci-tegra
             instmods \
+                "=drivers/dma" \
                 "=drivers/i2c/busses" \
                 "=drivers/regulator" \
                 "=drivers/rtc" \