dracut.sh: add command line option for install_i18_all

--no-hostonly-i18n -> install_i18n_all=yes
--hostonly-i18n -> install_i18n_all=no

(cherry picked from commit 34b551a1c4)
master
Harald Hoyer 2015-09-15 16:04:09 +02:00
parent b5363e834a
commit b73e00aff7
1 changed files with 7 additions and 0 deletions

View File

@ -362,6 +362,8 @@ rearrange_params()
--long uefi \
--long uefi-stub: \
--long kernel-image: \
--long no-hostonly-i18n \
--long hostonly-i18n \
-- "$@")

if (( $? != 0 )); then
@ -523,6 +525,10 @@ while :; do
hostonly_l="no" ;;
--hostonly-cmdline)
hostonly_cmdline_l="yes" ;;
--hostonly-i18n)
i18n_install_all_l="no" ;;
--no-hostonly-i18n)
i18n_install_all_l="yes" ;;
--no-hostonly-cmdline)
hostonly_cmdline_l="no" ;;
--persistent-policy)
@ -716,6 +722,7 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
[[ $hostonly_l ]] && hostonly=$hostonly_l
[[ $hostonly_cmdline_l ]] && hostonly_cmdline=$hostonly_cmdline_l
[[ "$hostonly" == "yes" ]] && ! [[ $hostonly_cmdline ]] && hostonly_cmdline="yes"
[[ $i18n_install_all_l ]] && i18n_install_all=$i18n_install_all_l
[[ $persistent_policy_l ]] && persistent_policy=$persistent_policy_l
[[ $use_fstab_l ]] && use_fstab=$use_fstab_l
[[ $mdadmconf_l ]] && mdadmconf=$mdadmconf_l