Re: [PATCH] dracut.sh: allow setting i18n_install_all in command options

2015-11-13 Thread Harald Hoyer
On 11.09.2015 10:03, Dangyi Liu wrote:
> From: Dave Young 
> 
> During kdump, we need a way to disable i18n_install_all forcedly in
> order to reduce memory usage, especially on PowerPC machines with 64k
> pages, which would efficiently save upto 60MB memory.
> ---
>  dracut.8.asc | 3 +++
>  dracut.sh| 5 +
>  2 files changed, 8 insertions(+)
> 

Thanks! Pushed.

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] dracut.sh: allow setting i18n_install_all in command options

2015-09-11 Thread Dracut GitHub Import Bot
Patchset imported to github.
Pull request:



--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] dracut.sh: allow setting i18n_install_all in command options

2015-09-11 Thread Dangyi Liu
From: Dave Young 

During kdump, we need a way to disable i18n_install_all forcedly in
order to reduce memory usage, especially on PowerPC machines with 64k
pages, which would efficiently save upto 60MB memory.
---
 dracut.8.asc | 3 +++
 dracut.sh| 5 +
 2 files changed, 8 insertions(+)

diff --git a/dracut.8.asc b/dracut.8.asc
index 7a7ef9d..c4838af 100644
--- a/dracut.8.asc
+++ b/dracut.8.asc
@@ -479,6 +479,9 @@ will not be able to boot.
 Specifies the kernel image, which to include in the UEFI executable. The 
default is
 _/lib/modules//vmlinuz_ or _/boot/vmlinuz-_
 
+**--i18n_install_all __**::
+Force to install all i18n stuff or not.
+
 FILES
 -
 _/var/log/dracut.log_::
diff --git a/dracut.sh b/dracut.sh
index 8ca319b..4ef12ee 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -207,6 +207,7 @@ Creates initial ramdisk images for preloading modules
 kernel combined
   --uefi-stub [FILE]Use the UEFI stub [FILE] to create an UEFI executable
   --kernel-image [FILE] location of the kernel image
+  --i18n_install_all [yes|no] Force to install all i18n stuff or not
 
 If [LIST] has multiple arguments, then you have to put these in quotes.
 
@@ -362,6 +363,7 @@ rearrange_params()
 --long uefi \
 --long uefi-stub: \
 --long kernel-image: \
+--long i18n_install_all: \
 -- "$@")
 
 if (( $? != 0 )); then
@@ -552,6 +554,8 @@ while :; do
uefi_stub_l="$2";   PARMS_TO_STORE+=" 
'$2'"; shift;;
 --kernel-image)
kernel_image_l="$2";PARMS_TO_STORE+=" 
'$2'"; shift;;
+--i18n_install_all)
+   i18n_install_all_l="$2";PARMS_TO_STORE+=" 
'$2'"; shift;;
 --) shift; break;;
 
 *)  # should not even reach this point
@@ -736,6 +740,7 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
 [[ $loginstall_l ]] && loginstall="$loginstall_l"
 [[ $uefi_stub_l ]] && uefi_stub="$uefi_stub_l"
 [[ $kernel_image_l ]] && kernel_image="$kernel_image_l"
+[[ $i18n_install_all_l ]] && i18n_install_all="$i18n_install_all_l"
 
 # eliminate IFS hackery when messing with fw_dir
 fw_dir=${fw_dir//:/ }
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html