Blame 0001-50drm-fix-ambiguous-redirects.patch
|
Peter Robinson |
faebfd |
From 89cd7a46296b34230c21775b24b226cc47ec1527 Mon Sep 17 00:00:00 2001
|
|
Peter Robinson |
faebfd |
From: Nicolas Chauvet <kwizart@gmail.com>
|
|
Peter Robinson |
faebfd |
Date: Sat, 26 Sep 2020 14:50:31 +0200
|
|
Peter Robinson |
faebfd |
Subject: [PATCH 1/3] 50drm: fix ambiguous redirects
|
|
Peter Robinson |
faebfd |
|
|
Peter Robinson |
faebfd |
If i contains a space, there is a need to protect the variable usage in some cases.
|
|
Peter Robinson |
faebfd |
|
|
Peter Robinson |
faebfd |
This will occurs when a next patch will enable platform bus with such case:
|
|
Peter Robinson |
faebfd |
'/sys/bus/platform/devices/Fixed MDIO bus.0'
|
|
Peter Robinson |
faebfd |
|
|
Peter Robinson |
faebfd |
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
|
|
Peter Robinson |
faebfd |
---
|
|
Peter Robinson |
faebfd |
modules.d/50drm/module-setup.sh | 4 ++--
|
|
Peter Robinson |
faebfd |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Peter Robinson |
faebfd |
|
|
Peter Robinson |
faebfd |
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
|
|
Peter Robinson |
faebfd |
index c69b2cfa..81d2e662 100755
|
|
Peter Robinson |
faebfd |
--- a/modules.d/50drm/module-setup.sh
|
|
Peter Robinson |
faebfd |
+++ b/modules.d/50drm/module-setup.sh
|
|
Peter Robinson |
faebfd |
@@ -33,8 +33,8 @@ installkernel() {
|
|
Peter Robinson |
faebfd |
if [[ $hostonly ]]; then
|
|
Peter Robinson |
faebfd |
for i in /sys/bus/{pci/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
|
|
Peter Robinson |
faebfd |
[[ -e $i ]] || continue
|
|
Peter Robinson |
faebfd |
- if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register" -S "iw_handler_get_spy" $(<$i); then
|
|
Peter Robinson |
faebfd |
- if strstr "$(modinfo -F filename $(<$i) 2>/dev/null)" radeon.ko; then
|
|
Peter Robinson |
faebfd |
+ if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register" -S "iw_handler_get_spy" $(<"$i"); then
|
|
Peter Robinson |
faebfd |
+ if strstr "$(modinfo -F filename $(<"$i") 2>/dev/null)" radeon.ko; then
|
|
Peter Robinson |
faebfd |
hostonly='' instmods amdkfd
|
|
Peter Robinson |
faebfd |
fi
|
|
Peter Robinson |
faebfd |
fi
|
|
Peter Robinson |
faebfd |
--
|
|
Peter Robinson |
faebfd |
2.26.2
|
|
Peter Robinson |
faebfd |
|