Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dracut.sh): give warning if drivers, force_drivers or filesystems… #2603

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1951,6 +1951,10 @@ if [[ $no_kernel != yes ]]; then
fi

if [[ $drivers ]]; then
if [[ -z ${drivers// /} ]]; then
dwarn "drivers is empty, dracut may be blocked."
fi

# shellcheck disable=SC2086
hostonly='' instmods $drivers
fi
Expand All @@ -1960,6 +1964,10 @@ if [[ $no_kernel != yes ]]; then
hostonly='' instmods -c $add_drivers
fi
if [[ $force_drivers ]]; then
if [[ -z ${force_drivers// /} ]]; then
dwarn "force_drivers is empty, dracut may be blocked."
fi

# shellcheck disable=SC2086
hostonly='' instmods -c $force_drivers
rm -f "$initdir"/etc/cmdline.d/20-force_driver.conf
Expand All @@ -1968,6 +1976,10 @@ if [[ $no_kernel != yes ]]; then
done
fi
if [[ $filesystems ]]; then
if [[ -z ${filesystems// /} ]]; then
dwarn "force_drivers is empty, dracut may be blocked."
fi

# shellcheck disable=SC2086
hostonly='' instmods -c $filesystems
fi
Expand Down