Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dracut.sh): split drivers_dir check
The directory where to look for kernel modules can be set via the -k/--kmoddir command line option or the drivers_dir configuration option. Its current check should be split into two different ones to avoid misleading error messages (see referenced issue): - First check that its basename matches the kernel version set for the initramfs (via --kver or automatically set by "uname -r"). - Second check that the parent directory of the last provided directory contains "/lib/modules/". This check was also fixed to avoid accepting other directories like "xxxlib/modules". Fixes issue #1608
- Loading branch information