Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename the meaningless REAR_LOGFILE to RUNTIME_LOGFILE to make its na…
…me tell what it actually is (issue1119)
- Loading branch information
Showing
4 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Copy current unfinished logfile to initramfs for debug purpose. | ||
# Usually REAR_LOGFILE=/var/log/rear/rear-$HOSTNAME.log | ||
# The REAR_LOGFILE name set by main script from LOGFILE in default.conf | ||
# but later user config files are sourced in main script where LOGFILE can be set different | ||
# Usually RUNTIME_LOGFILE=/var/log/rear/rear-$HOSTNAME.log | ||
# The RUNTIME_LOGFILE name is set by the main script from LOGFILE in default.conf | ||
# but later user config files are sourced in the main script where LOGFILE can be set different | ||
# so that the user config LOGFILE basename (except a trailing '.log') is used as target logfile name: | ||
logfile_basename=$( basename $LOGFILE ) | ||
LogPrint "Copying logfile $REAR_LOGFILE into initramfs as '/tmp/${logfile_basename%.*}-partial-$(date -Iseconds).log'" | ||
LogPrint "Copying logfile $RUNTIME_LOGFILE into initramfs as '/tmp/${logfile_basename%.*}-partial-$(date -Iseconds).log'" | ||
mkdir -p $v $ROOTFS_DIR/tmp >&2 | ||
cp -a $v $REAR_LOGFILE $ROOTFS_DIR/tmp/${logfile_basename%.*}-partial-$(date -Iseconds).log >&2 | ||
cp -a $v $RUNTIME_LOGFILE $ROOTFS_DIR/tmp/${logfile_basename%.*}-partial-$(date -Iseconds).log >&2 | ||
|