All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dracut.sh: Fix [no-]early-microcode parameter and add documentation.
@ 2013-08-16 21:16 Daniel Schaal
       [not found] ` <1376687775-31272-1-git-send-email-farbing-S0/GAf8tV78@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Schaal @ 2013-08-16 21:16 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Daniel Schaal

[no-]early-microcode was missing from getopt argument list.

Let arguments passed by command line override config files.
---
 dracut.8.asc      | 6 ++++++
 dracut.conf.5.asc | 3 +++
 dracut.sh         | 8 ++++++--
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/dracut.8.asc b/dracut.8.asc
index 714ba85..ee9d8de 100644
--- a/dracut.8.asc
+++ b/dracut.8.asc
@@ -225,6 +225,12 @@ example:
 **--no-kernel**::
     do not install kernel drivers and firmware files
 
+**--early-microcode**::
+    Combine early microcode with ramdisk
+
+**--no-early-microcode**::
+    Do not combine early microcode with ramdisk
+
 **--print-cmdline**::
     print the kernel command line for the current disk layout
 
diff --git a/dracut.conf.5.asc b/dracut.conf.5.asc
index df876cc..89beeb1 100644
--- a/dracut.conf.5.asc
+++ b/dracut.conf.5.asc
@@ -117,6 +117,9 @@ If chrooted to another root other than the real root device, use --fstab and pro
 *no_kernel=*"{yes|no}"::
     Do not install kernel drivers and firmware files (default=no)
 
+*early_microcode=*"{yes|no}"::
+    Combine early microcode with ramdisk (default=no)
+
 *stdloglvl*="__\{0-6\}__"::
     Set logging to standard error level.
 
diff --git a/dracut.sh b/dracut.sh
index d0d1c11..7071d05 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -346,6 +346,8 @@ TEMP=$(unset POSIXLY_CORRECT; getopt \
     --long printsize \
     --long regenerate-all \
     --long noimageifnotneeded \
+    --long early-microcode \
+    --long no-early-microcode \
     -- "$@")
 
 if (( $? != 0 )); then
@@ -388,8 +390,8 @@ while :; do
         --kernel-only) kernel_only="yes"; no_kernel="no";;
         --no-kernel)   kernel_only="no"; no_kernel="yes";;
         --print-cmdline) print_cmdline="yes"; hostonly_l="yes"; kernel_only="yes"; no_kernel="yes";;
-        --early-microcode) early_microcode="yes";;
-        --no-early-microcode) early_microcode="no";;
+        --early-microcode) early_microcode_l="yes";;
+        --no-early-microcode) early_microcode_l="no";;
         --strip)       do_strip_l="yes";;
         --nostrip)     do_strip_l="no";;
         --hardlink)    do_hardlink_l="yes";;
@@ -665,6 +667,8 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
 [[ $show_modules_l ]] && show_modules=$show_modules_l
 [[ $nofscks_l ]] && nofscks="yes"
 [[ $ro_mnt_l ]] && ro_mnt="yes"
+[[ $early_microcode_l ]] && early_microcode=$early_microcode_l
+[[ $early_microcode ]] || early_microcode=no
 # eliminate IFS hackery when messing with fw_dir
 fw_dir=${fw_dir//:/ }
 
-- 
1.8.4.rc2

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

* Re: [PATCH] dracut.sh: Fix [no-]early-microcode parameter and add documentation.
       [not found] ` <1376687775-31272-1-git-send-email-farbing-S0/GAf8tV78@public.gmane.org>
@ 2013-08-19  9:13   ` Harald Hoyer
  2013-08-19 15:02   ` Konrad Rzeszutek Wilk
  1 sibling, 0 replies; 3+ messages in thread
From: Harald Hoyer @ 2013-08-19  9:13 UTC (permalink / raw)
  To: Daniel Schaal; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

On 08/16/2013 11:16 PM, Daniel Schaal wrote:
> [no-]early-microcode was missing from getopt argument list.
> 
> Let arguments passed by command line override config files.
> ---
>  dracut.8.asc      | 6 ++++++
>  dracut.conf.5.asc | 3 +++
>  dracut.sh         | 8 ++++++--
>  3 files changed, 15 insertions(+), 2 deletions(-)
> 

Thanks! pushed

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

* Re: [PATCH] dracut.sh: Fix [no-]early-microcode parameter and add documentation.
       [not found] ` <1376687775-31272-1-git-send-email-farbing-S0/GAf8tV78@public.gmane.org>
  2013-08-19  9:13   ` Harald Hoyer
@ 2013-08-19 15:02   ` Konrad Rzeszutek Wilk
  1 sibling, 0 replies; 3+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-08-19 15:02 UTC (permalink / raw)
  To: Daniel Schaal; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

On Fri, Aug 16, 2013 at 11:16:15PM +0200, Daniel Schaal wrote:
> [no-]early-microcode was missing from getopt argument list.
> 
> Let arguments passed by command line override config files.

Ooh, didn't even realize those needed to be changed. Thank you!
> ---
>  dracut.8.asc      | 6 ++++++
>  dracut.conf.5.asc | 3 +++
>  dracut.sh         | 8 ++++++--
>  3 files changed, 15 insertions(+), 2 deletions(-)
> 
> diff --git a/dracut.8.asc b/dracut.8.asc
> index 714ba85..ee9d8de 100644
> --- a/dracut.8.asc
> +++ b/dracut.8.asc
> @@ -225,6 +225,12 @@ example:
>  **--no-kernel**::
>      do not install kernel drivers and firmware files
>  
> +**--early-microcode**::
> +    Combine early microcode with ramdisk
> +
> +**--no-early-microcode**::
> +    Do not combine early microcode with ramdisk
> +
>  **--print-cmdline**::
>      print the kernel command line for the current disk layout
>  
> diff --git a/dracut.conf.5.asc b/dracut.conf.5.asc
> index df876cc..89beeb1 100644
> --- a/dracut.conf.5.asc
> +++ b/dracut.conf.5.asc
> @@ -117,6 +117,9 @@ If chrooted to another root other than the real root device, use --fstab and pro
>  *no_kernel=*"{yes|no}"::
>      Do not install kernel drivers and firmware files (default=no)
>  
> +*early_microcode=*"{yes|no}"::
> +    Combine early microcode with ramdisk (default=no)
> +
>  *stdloglvl*="__\{0-6\}__"::
>      Set logging to standard error level.
>  
> diff --git a/dracut.sh b/dracut.sh
> index d0d1c11..7071d05 100755
> --- a/dracut.sh
> +++ b/dracut.sh
> @@ -346,6 +346,8 @@ TEMP=$(unset POSIXLY_CORRECT; getopt \
>      --long printsize \
>      --long regenerate-all \
>      --long noimageifnotneeded \
> +    --long early-microcode \
> +    --long no-early-microcode \
>      -- "$@")
>  
>  if (( $? != 0 )); then
> @@ -388,8 +390,8 @@ while :; do
>          --kernel-only) kernel_only="yes"; no_kernel="no";;
>          --no-kernel)   kernel_only="no"; no_kernel="yes";;
>          --print-cmdline) print_cmdline="yes"; hostonly_l="yes"; kernel_only="yes"; no_kernel="yes";;
> -        --early-microcode) early_microcode="yes";;
> -        --no-early-microcode) early_microcode="no";;
> +        --early-microcode) early_microcode_l="yes";;
> +        --no-early-microcode) early_microcode_l="no";;
>          --strip)       do_strip_l="yes";;
>          --nostrip)     do_strip_l="no";;
>          --hardlink)    do_hardlink_l="yes";;
> @@ -665,6 +667,8 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
>  [[ $show_modules_l ]] && show_modules=$show_modules_l
>  [[ $nofscks_l ]] && nofscks="yes"
>  [[ $ro_mnt_l ]] && ro_mnt="yes"
> +[[ $early_microcode_l ]] && early_microcode=$early_microcode_l
> +[[ $early_microcode ]] || early_microcode=no
>  # eliminate IFS hackery when messing with fw_dir
>  fw_dir=${fw_dir//:/ }
>  
> -- 
> 1.8.4.rc2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe initramfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-08-19 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-16 21:16 [PATCH] dracut.sh: Fix [no-]early-microcode parameter and add documentation Daniel Schaal
     [not found] ` <1376687775-31272-1-git-send-email-farbing-S0/GAf8tV78@public.gmane.org>
2013-08-19  9:13   ` Harald Hoyer
2013-08-19 15:02   ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.