]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(drm): shellcheck for modules.d/50drm
authorHarald Hoyer <harald@redhat.com>
Fri, 26 Mar 2021 09:29:16 +0000 (10:29 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 29 Mar 2021 08:12:46 +0000 (10:12 +0200)
modules.d/50drm/.shchkdir [new file with mode: 0644]
modules.d/50drm/module-setup.sh

diff --git a/modules.d/50drm/.shchkdir b/modules.d/50drm/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index e94a14300891c193edf47106c490da87c0485568..aca01505cc7f501c63f2ed98e03dd051b2d46dfe 100755 (executable)
@@ -12,7 +12,6 @@ depends() {
 
 # called by dracut
 installkernel() {
-    local _modname
     # Include KMS capable drm drivers
 
     if [[ ${DRACUT_ARCH:-$(uname -m)} == arm* || ${DRACUT_ARCH:-$(uname -m)} == aarch64 ]]; then
@@ -21,8 +20,7 @@ installkernel() {
             "=drivers/gpu/drm/i2c" \
             "=drivers/gpu/drm/panel" \
             "=drivers/gpu/drm/bridge" \
-            "=drivers/video/backlight" \
-            ${NULL}
+            "=drivers/video/backlight"
     fi
 
     instmods amdkfd hyperv_fb "=drivers/pwm"
@@ -34,6 +32,7 @@ installkernel() {
         for i in /sys/bus/{pci/devices,platform/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
             [[ -e $i ]] || continue
             [[ -n $(< "$i") ]] || continue
+            # shellcheck disable=SC2046
             if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register|drm_encoder_init" -S "iw_handler_get_spy" $(< "$i"); then
                 if strstr "$(modinfo -F filename $(< "$i") 2> /dev/null)" radeon.ko; then
                     hostonly='' instmods amdkfd