public inbox for initramfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dracut.sh: allow setting i18n_install_all in command options
@ 2015-09-11  8:03 Dangyi Liu
       [not found] ` <1441958636-15303-1-git-send-email-dliu-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Dangyi Liu @ 2015-09-11  8:03 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Dangyi Liu

From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

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/<KERNEL-VERSION>/vmlinuz_ or _/boot/vmlinuz-<KERNEL-VERSION>_
 
+**--i18n_install_all _<yes|no>_**::
+    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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dracut.sh: allow setting i18n_install_all in command options
       [not found] ` <1441958636-15303-1-git-send-email-dliu-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2015-09-11  9:04   ` Dracut GitHub Import Bot
  2015-11-13 12:45   ` Harald Hoyer
  1 sibling, 0 replies; 3+ messages in thread
From: Dracut GitHub Import Bot @ 2015-09-11  9:04 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

Patchset imported to github.
Pull request:
<https://github.com/haraldh/dracut/compare/master...dracut-mailing-devs:1441958636-15303-1-git-send-email-dliu%40redhat.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dracut.sh: allow setting i18n_install_all in command options
       [not found] ` <1441958636-15303-1-git-send-email-dliu-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2015-09-11  9:04   ` Dracut GitHub Import Bot
@ 2015-11-13 12:45   ` Harald Hoyer
  1 sibling, 0 replies; 3+ messages in thread
From: Harald Hoyer @ 2015-11-13 12:45 UTC (permalink / raw)
  To: Dangyi Liu, initramfs-u79uwXL29TY76Z2rM5mHXA

On 11.09.2015 10:03, Dangyi Liu wrote:
> From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> 
> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-13 12:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-11  8:03 [PATCH] dracut.sh: allow setting i18n_install_all in command options Dangyi Liu
     [not found] ` <1441958636-15303-1-git-send-email-dliu-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-11  9:04   ` Dracut GitHub Import Bot
2015-11-13 12:45   ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox