b0e8c7 core: try to reopen /dev/kmsg again right after mounting /dev

1 file Authored by Lennart Poettering 4 years ago, Committed by Packit Service 4 years ago,
    core: try to reopen /dev/kmsg again right after mounting /dev
    
    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 0a2eef1ee1fef74be9d12f7dc4d0006b645b579c)
    
    Resolves: #1749212
    
    patch_name: 0226-core-try-to-reopen-dev-kmsg-again-right-after-mounti.patch
    present_in_specfile: true
    location_in_specfile: 226
    squash_commits: true
    
        
file modified
+5 -0