fix(drm): shellcheck for modules.d/50drm

master
Harald Hoyer 2021-03-26 10:29:16 +01:00 committed by Harald Hoyer
parent 8e84fa7262
commit 0ba7a48695
2 changed files with 2 additions and 3 deletions

View File

View File

@ -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