-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
util: correct errors and suppress stderr for common cases #5959
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to keep the changes consistent between branches. Considering master as the source of truth for backports, let's review this one, and block the rhel-10 and rhel-9 Prs on this getting merged.
54be6c7
to
14fb276
Compare
|
||
if [[ -e /tmp/pre-anaconda-logs/ ]];then | ||
cp -r /tmp/pre-anaconda-logs ${OUTDIR} | ||
fi | ||
|
||
tar cfa ${ARCHIVE} ${OUTDIR} | ||
tar cfa ${ARCHIVE} -C / ./${OUTDIR} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why we need to change to root? Wasn't it working before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the change to root and addition of ./
, tar
no longer emits:
tar: Removing leading `/' from member names
14fb276
to
257156e
Compare
257156e
to
be6f1f4
Compare
/kickstart-tests --testtype logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please test stuff before submitting for review.
scripts/log-capture
Outdated
_to_log ls -l /sys/firmware/efi/efivars | ||
fi | ||
|
||
if test -e /tmp/*.log; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I think this does not work:
You need to use: compgen -G ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or something like this:
find /tmp -type f -name '*.log' -exec cp '{}' ${OUTDIR} ';'
be6f1f4
to
0b2442f
Compare
0b2442f
to
7b84430
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There were some errors uncovered in the
log-capture
script as part of the RHEL backport process (#5808).This corrects the errors and should let the tool run in the default case without output to
stderr
.