Skip to content

Commit

Permalink
fix(dracut-init): make require_kernel_modules ignore no kernel build
Browse files Browse the repository at this point in the history
If --no-kernel is specified, kernel module checking won't work, just
skip it.

Signed-off-by: Kairui Song <kasong@tencent.com>
  • Loading branch information
ryncsn authored and aafeijoo-suse committed Dec 21, 2022
1 parent 7917d79 commit d460941
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dracut-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ require_kernel_modules() {
local _module_name="${moddir##*/}"
local _ret=0

# Ignore kernel module requirement for no-kernel build
[[ $no_kernel == yes ]] && return 0

if [[ $1 == "-m" ]]; then
_module_name="$2"
shift 2
Expand Down

0 comments on commit d460941

Please sign in to comment.