[rear-devel] [rear/rear] 49a6d0: Update rear
noreply at github.com
Wed Dec 9 15:00:33 CET 2020
Author: Johannes Meixner <jsmeix at suse.com>
Date: 2020-12-09 (Wed, 09 Dec 2020)
Introduce DEBUG_OUTPUT_DEV in sbin/rear
(same kind as DISPENSABLE_OUTPUT_DEV)
so that it is now possible to have program output in the log
only in debug modes in particular when that program output
might needlessly alert the user like error messages when they appear
in non-debug modes without additional debug information that make it clear
where the messages belong to and whether or not there is actually a problem.
For a usage example see in prep/USB/default/380_copy_usb_fs_module.sh
"if modinfo "$usb_fs" 1>/dev/null 2>>/dev/$DEBUG_OUTPUT_DEV ; then ..."
where modinfo stderr could be like "modinfo: ERROR: Module ... not found"
which is not at all an error here because here 'modinfo' is used to only find out
if something is available as kernel module so failures are an expected behaviour.
More information about the rear-devel