]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix: skip empty modalias files in drm module setup
authorEvgeni Golov <evgeni@golov.de>
Sat, 13 Feb 2021 20:40:47 +0000 (21:40 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 22 Feb 2021 13:55:44 +0000 (14:55 +0100)
commitc3f241849de6434d063ef92e6880f6b0335c1800
treed2fba87ef50a408f491400f9b27919942bd25f54
parentc17c5b7604c8d61dd1c00ee22d44c3a5d7d6dfee
fix: skip empty modalias files in drm module setup

on my system (ThinkPad X201s) I have several modalias entries that are
empty:

    /sys/bus/platform/devices/dock.0/modalias
    /sys/bus/platform/devices/dock.1/modalias
    /sys/bus/platform/devices/dock.2/modalias

executing the drm module setup thus results in the following errors

    dracut-install: No SOURCE argument given

when calling dracut_instmods and hostonly mode is enabled.

Skip those entries, as there are no modules to load in this case
anyways.

Note: it is not sufficient to use [['s -s test (file size is greater
than zero), as all those files are 4096B if you stat them.
modules.d/50drm/module-setup.sh