Blame 0146-dracut.sh-add-command-line-option-for-install_i18_al.patch

Harald Hoyer bb31e7
From b73e00aff7baf6b48e9b7af6ea1defee724b13a9 Mon Sep 17 00:00:00 2001
Harald Hoyer bb31e7
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer bb31e7
Date: Tue, 15 Sep 2015 16:04:09 +0200
Harald Hoyer bb31e7
Subject: [PATCH] dracut.sh: add command line option for install_i18_all
Harald Hoyer bb31e7
Harald Hoyer bb31e7
--no-hostonly-i18n -> install_i18n_all=yes
Harald Hoyer bb31e7
--hostonly-i18n -> install_i18n_all=no
Harald Hoyer bb31e7
Harald Hoyer bb31e7
(cherry picked from commit 34b551a1c4d4513189807ee2a639c9214d887ddb)
Harald Hoyer bb31e7
---
Harald Hoyer bb31e7
 dracut.sh | 7 +++++++
Harald Hoyer bb31e7
 1 file changed, 7 insertions(+)
Harald Hoyer bb31e7
Harald Hoyer bb31e7
diff --git a/dracut.sh b/dracut.sh
Harald Hoyer bb31e7
index 1169037..9128cb0 100755
Harald Hoyer bb31e7
--- a/dracut.sh
Harald Hoyer bb31e7
+++ b/dracut.sh
Harald Hoyer bb31e7
@@ -362,6 +362,8 @@ rearrange_params()
Harald Hoyer bb31e7
         --long uefi \
Harald Hoyer bb31e7
         --long uefi-stub: \
Harald Hoyer bb31e7
         --long kernel-image: \
Harald Hoyer bb31e7
+        --long no-hostonly-i18n \
Harald Hoyer bb31e7
+        --long hostonly-i18n \
Harald Hoyer bb31e7
         -- "$@")
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
     if (( $? != 0 )); then
Harald Hoyer bb31e7
@@ -523,6 +525,10 @@ while :; do
Harald Hoyer bb31e7
                        hostonly_l="no" ;;
Harald Hoyer bb31e7
         --hostonly-cmdline)
Harald Hoyer bb31e7
                        hostonly_cmdline_l="yes" ;;
Harald Hoyer bb31e7
+        --hostonly-i18n)
Harald Hoyer bb31e7
+                       i18n_install_all_l="no" ;;
Harald Hoyer bb31e7
+        --no-hostonly-i18n)
Harald Hoyer bb31e7
+                       i18n_install_all_l="yes" ;;
Harald Hoyer bb31e7
         --no-hostonly-cmdline)
Harald Hoyer bb31e7
                        hostonly_cmdline_l="no" ;;
Harald Hoyer bb31e7
         --persistent-policy)
Harald Hoyer bb31e7
@@ -716,6 +722,7 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
Harald Hoyer bb31e7
 [[ $hostonly_l ]] && hostonly=$hostonly_l
Harald Hoyer bb31e7
 [[ $hostonly_cmdline_l ]] && hostonly_cmdline=$hostonly_cmdline_l
Harald Hoyer bb31e7
 [[ "$hostonly" == "yes" ]] && ! [[ $hostonly_cmdline ]] && hostonly_cmdline="yes"
Harald Hoyer bb31e7
+[[ $i18n_install_all_l ]] && i18n_install_all=$i18n_install_all_l
Harald Hoyer bb31e7
 [[ $persistent_policy_l ]] && persistent_policy=$persistent_policy_l
Harald Hoyer bb31e7
 [[ $use_fstab_l ]] && use_fstab=$use_fstab_l
Harald Hoyer bb31e7
 [[ $mdadmconf_l ]] && mdadmconf=$mdadmconf_l