]> git.ipfire.org Git - thirdparty/dracut.git/commit
90kernel-modules-extra: don't resolve symlinks before instmod
authorLukas Nykryn <lnykryn@redhat.com>
Fri, 2 Aug 2019 12:26:23 +0000 (14:26 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 2 Aug 2019 12:39:09 +0000 (14:39 +0200)
commitd1afff43aea01c8d43817adf3ac4041dd4b9f022
treee45a4598d7cb86801cb4e7f796cd4be48de1aea4
parent23acf15227557ea1701bf853b3aa402a9ecba0a3
90kernel-modules-extra: don't resolve symlinks before instmod

When you install a third-party driver, you will probably end in a
situation, where the module will be in a different directory and
in $depmod_module_dir you will only have symlink. If we resolve the
symlink before we pass the module path to instmod, the dracut-install
will only include the module with its original path, but not the
symlink. Hence the module can't be automatically loaded.

Dracut-install is clever enough to handle symlinks and will include both
the symlink and the module to the initrd.
modules.d/90kernel-modules-extra/module-setup.sh