Skip to content

Contents in FILES variable being logged twice? #307

Description

@paolo-depa

Looking at this code:

(( SLES_VER < 160 )) && FILES='/var/log/boot.log /etc/init.d/boot.local /etc/init.d/before.local /etc/init.d/after.local /etc/init.d/halt.local' || FILES=''
conf_files $OF /proc/cmdline /etc/sysconfig/kernel $FILES
log_cmd $OF 'ls -lR --time-style=long-iso /boot/'
log_cmd $OF 'lsinitrd $(readlink -f /boot/initrd)'
(( $ADD_OPTION_LOGS )) && log_files $OF 0 $FILES || log_files $OF $VAR_OPTION_LINE_COUNT $FILES

I fear that boot.log (often very verbose) and the other files in FILES are logged twice, for SLE<16 at least: am I wrong? Is it intentional?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions