mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare-l3A5Bk7waGM@public.gmane.org>
To: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Thomas Renninger <trenn-l3A5Bk7waGM@public.gmane.org>,
	initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Hannes Reinecke <hare-l3A5Bk7waGM@public.gmane.org>
Subject: [PATCH 08/13] Make logfile configurable
Date: Fri, 29 Nov 2013 13:13:49 +0100	[thread overview]
Message-ID: <1385727234-5001-9-git-send-email-hare@suse.de> (raw)
In-Reply-To: <1385727234-5001-1-git-send-email-hare-l3A5Bk7waGM@public.gmane.org>

Add '--logfile' option to make the log file configurable during
runtime.

Signed-off-by: Hannes Reinecke <hare-l3A5Bk7waGM@public.gmane.org>
---
 dracut.8.asc | 6 ++++++
 dracut.sh    | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/dracut.8.asc b/dracut.8.asc
index 2ea6744..d381dcf 100644
--- a/dracut.8.asc
+++ b/dracut.8.asc
@@ -275,6 +275,12 @@ Default:
 
 **--sshkey** _<sshkey file>_:: ssh key file used with ssh-client module.
 
+**--logfile** _<logfile>_:: logfile to use; overrides any setting from
+    the configuration files.
++
+Default:
+    _/var/log/dracut.log_
+
 **-l, --local**::
     activates the local mode. dracut will use modules from the current working
     directory instead of the system-wide installed modules in
diff --git a/dracut.sh b/dracut.sh
index bce2662..5f63d94 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -183,6 +183,7 @@ Creates initial ramdisk images for preloading modules
   --keep                Keep the temporary initramfs for debugging purposes
   --printsize           Print out the module install size
   --sshkey [SSHKEY]     Add ssh key to initramfs (use with ssh-client module)
+  --logfile [FILE]      Logfile to use (overrides configuration setting)
 
 If [LIST] has multiple arguments, then you have to put these in quotes.
 
@@ -335,6 +336,7 @@ TEMP=$(unset POSIXLY_CORRECT; getopt \
     --long debug \
     --long profile \
     --long sshkey: \
+    --long logfile: \
     --long verbose \
     --long quiet \
     --long local \
@@ -418,6 +420,7 @@ while :; do
         --debug)       debug="yes";;
         --profile)     profile="yes";;
         --sshkey)      sshkey="$2"; shift;;
+        --logfile)     logfile_l="$2"; shift;;
         -v|--verbose)  ((verbosity_mod_l++));;
         -q|--quiet)    ((verbosity_mod_l--));;
         -l|--local)
@@ -690,6 +693,7 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
 [[ $ro_mnt_l ]] && ro_mnt="yes"
 [[ $early_microcode_l ]] && early_microcode=$early_microcode_l
 [[ $early_microcode ]] || early_microcode=no
+[[ $logfile_l ]] && logfile="$logfile_l"
 # eliminate IFS hackery when messing with fw_dir
 fw_dir=${fw_dir//:/ }
 
-- 
1.8.1.4

  parent reply	other threads:[~2013-11-29 12:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-29 12:13 [PATCHv2 00/13] SUSE S/390 integration Hannes Reinecke
     [not found] ` <1385727234-5001-1-git-send-email-hare-l3A5Bk7waGM@public.gmane.org>
2013-11-29 12:13   ` [PATCH 01/13] 95dasd: Install kernel modules only once Hannes Reinecke
2013-11-29 12:13   ` [PATCH 02/13] 95dasd: Only install module if normalize_dasd_arg is present Hannes Reinecke
2013-11-29 12:13   ` [PATCH 03/13] 95dasd_mod: make dasd_cio_free optional Hannes Reinecke
2013-11-29 12:13   ` [PATCH 04/13] 95zfcp: Make installation optional Hannes Reinecke
2013-11-29 12:13   ` [PATCH 05/13] 95znet: " Hannes Reinecke
2013-11-29 12:13   ` [PATCH 06/13] Add DASD configuration for SuSE Hannes Reinecke
2013-11-29 12:13   ` [PATCH 07/13] Add zfcp scripts for SUSE Hannes Reinecke
2013-11-29 12:13   ` Hannes Reinecke [this message]
2013-11-29 12:13   ` [PATCH 09/13] mkinitrd-suse: Add SUSE compability wrapper for dracut Hannes Reinecke
2013-11-29 12:13   ` [PATCH 10/13] mkinitrd-suse.8.asc: Add manpage for SUSE compat mkinitrd Hannes Reinecke
2013-11-29 12:13   ` [PATCH 11/13] Fixup keymap setting for openSUSE Hannes Reinecke
2013-11-29 12:13   ` [PATCH 12/13] Fixup script permissions Hannes Reinecke
2013-11-29 12:13   ` [PATCH 13/13] Remove shebang from shell-completion files Hannes Reinecke
2014-01-28 14:42   ` [PATCHv2 00/13] SUSE S/390 integration Harald Hoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1385727234-5001-9-git-send-email-hare@suse.de \
    --to=hare-l3a5bk7wagm@public.gmane.org \
    --cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=trenn-l3A5Bk7waGM@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox