dracut.sh: factor out do_print_cmdline()

master
Harald Hoyer 2015-03-19 11:04:02 +01:00
parent 28eae10b70
commit 9119059723
1 changed files with 6 additions and 1 deletions

View File

@ -1291,7 +1291,8 @@ for_each_module_dir check_mount

dracut_module_included "fips" && export DRACUT_FIPS_MODE=1

if [[ $print_cmdline ]]; then
do_print_cmdline()
{
modules_loaded=" "
# source our modules.
for moddir in "$dracutbasedir/modules.d"/[0-9][0-9]*; do
@ -1299,6 +1300,10 @@ if [[ $print_cmdline ]]; then
module_cmdline "$_d_mod"
done
unset moddir
}

if [[ $print_cmdline ]]; then
do_print_cmdline
printf "\n"
exit 0
fi