Skip to content

Commit

Permalink
fix(kernel-modules): optionally add /usr/lib/modules.d to initramfs
Browse files Browse the repository at this point in the history
On SUSE, there is no /lib/modules.d, only /usr/lib/modules.d.

Upstream-Bug: http://bugzilla.opensuse.org/show_bug.cgi?id=1180822

Reference: bsc#1180822
  • Loading branch information
danimo authored and haraldh committed Mar 3, 2021
1 parent a96900a commit 92e6a8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules.d/90kernel-modules/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ installkernel() {

# called by dracut
install() {
inst_multiple -o "/lib/modprobe.d/*.conf"
[[ -d /lib/modprobe.d ]] && inst_multiple -o "/lib/modprobe.d/*.conf"
[[ -d /usr/lib/modprobe.d ]] && inst_multiple -o "/usr/lib/modprobe.d/*.conf"
[[ $hostonly ]] && inst_multiple -H -o /etc/modprobe.d/*.conf /etc/modprobe.conf
if ! dracut_module_included "systemd"; then
inst_hook cmdline 01 "$moddir/parse-kernel.sh"
Expand Down

0 comments on commit 92e6a8f

Please sign in to comment.