Skip to content
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

(#1749212) core: try to reopen /dev/kmsg again right after mounting /dev #18

Merged

Conversation

jsynacek
Copy link
Contributor

@jsynacek jsynacek commented Sep 5, 2019

I was debugging stuff during early boot, and was confused that I never
found the logs for it in kmsg. The reason for that was that /proc is
generally not mounted the first time we do log_open() and hence
log_set_target(LOG_TARGET_KMSG) we do when running as PID 1 had not
effect. A lot later during start-up we call log_open() again where this
is fixed (after the point where we close all remaining fds still open),
but in the meantime no logs every got written to kmsg. This patch fixes
that.

(cherry picked from commit 0a2eef1)

Resolves: #1749212

I was debugging stuff during early boot, and was confused that I never
found the logs for it in kmsg. The reason for that was that /proc is
generally not mounted the first time we do log_open() and hence
log_set_target(LOG_TARGET_KMSG) we do when running as PID 1 had not
effect. A lot later during start-up we call log_open() again where this
is fixed (after the point where we close all remaining fds still open),
but in the meantime no logs every got written to kmsg. This patch fixes
that.

(cherry picked from commit 0a2eef1)

Resolves: #1749212
@lnykryn lnykryn added the pr/needs-review Formerly needs-review label Sep 5, 2019
@lnykryn lnykryn changed the title core: try to reopen /dev/kmsg again right after mounting /dev (#1749212) core: try to reopen /dev/kmsg again right after mounting /dev Sep 5, 2019
@lnykryn lnykryn added the tracker/unapproved Formerly needs-acks label Sep 5, 2019
Copy link
Member

@msekletar msekletar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@systemd-rhel-bot systemd-rhel-bot removed the pr/needs-review Formerly needs-review label Sep 24, 2019
@dtardon dtardon removed the null label Oct 4, 2019
@systemd-rhel-bot systemd-rhel-bot removed the tracker/unapproved Formerly needs-acks label Oct 21, 2019
@systemd-rhel-bot systemd-rhel-bot merged commit 985837d into redhat-plumbers:master Oct 21, 2019
@mergify mergify bot added the pr/needs-ci Formerly needs-ci label Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/needs-ci Formerly needs-ci released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants