Make logfile configurable
Add '--logfile' option to make the log file configurable during
runtime.
Signed-off-by: Hannes Reinecke <hare@suse.de>
(cherry picked from commit ee54b8404c
)
parent
52923f5f2a
commit
81a6e87f0f
|
@ -275,6 +275,12 @@ Default:
|
||||||
|
|
||||||
**--sshkey** _<sshkey file>_:: ssh key file used with ssh-client module.
|
**--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**::
|
**-l, --local**::
|
||||||
activates the local mode. dracut will use modules from the current working
|
activates the local mode. dracut will use modules from the current working
|
||||||
directory instead of the system-wide installed modules in
|
directory instead of the system-wide installed modules in
|
||||||
|
|
|
@ -187,6 +187,7 @@ Creates initial ramdisk images for preloading modules
|
||||||
--keep Keep the temporary initramfs for debugging purposes
|
--keep Keep the temporary initramfs for debugging purposes
|
||||||
--printsize Print out the module install size
|
--printsize Print out the module install size
|
||||||
--sshkey [SSHKEY] Add ssh key to initramfs (use with ssh-client module)
|
--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.
|
If [LIST] has multiple arguments, then you have to put these in quotes.
|
||||||
|
|
||||||
|
@ -340,6 +341,7 @@ TEMP=$(unset POSIXLY_CORRECT; getopt \
|
||||||
--long debug \
|
--long debug \
|
||||||
--long profile \
|
--long profile \
|
||||||
--long sshkey: \
|
--long sshkey: \
|
||||||
|
--long logfile: \
|
||||||
--long verbose \
|
--long verbose \
|
||||||
--long quiet \
|
--long quiet \
|
||||||
--long local \
|
--long local \
|
||||||
|
@ -430,6 +432,7 @@ while :; do
|
||||||
--debug) debug="yes";;
|
--debug) debug="yes";;
|
||||||
--profile) profile="yes";;
|
--profile) profile="yes";;
|
||||||
--sshkey) sshkey="$2"; shift;;
|
--sshkey) sshkey="$2"; shift;;
|
||||||
|
--logfile) logfile_l="$2"; shift;;
|
||||||
-v|--verbose) ((verbosity_mod_l++));;
|
-v|--verbose) ((verbosity_mod_l++));;
|
||||||
-q|--quiet) ((verbosity_mod_l--));;
|
-q|--quiet) ((verbosity_mod_l--));;
|
||||||
-l|--local)
|
-l|--local)
|
||||||
|
@ -709,6 +712,7 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
|
||||||
[[ $ro_mnt_l ]] && ro_mnt="yes"
|
[[ $ro_mnt_l ]] && ro_mnt="yes"
|
||||||
[[ $early_microcode_l ]] && early_microcode=$early_microcode_l
|
[[ $early_microcode_l ]] && early_microcode=$early_microcode_l
|
||||||
[[ $early_microcode ]] || early_microcode=no
|
[[ $early_microcode ]] || early_microcode=no
|
||||||
|
[[ $logfile_l ]] && logfile="$logfile_l"
|
||||||
# eliminate IFS hackery when messing with fw_dir
|
# eliminate IFS hackery when messing with fw_dir
|
||||||
fw_dir=${fw_dir//:/ }
|
fw_dir=${fw_dir//:/ }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue