Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mkinitfs mkinitfs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 19
    • Issues 19
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpinealpine
  • mkinitfsmkinitfs
  • Merge requests
  • !61

Output init progress to /dev/kmsg

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Reid Rankin requested to merge github/fork/reidrankin/dev-kmsg-progress into master Jan 16, 2020
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

This enables debug of early-init problems via the use of the earlyprintk kernel parameter.

I recently tried to debug an issue with Hyper-V and the use of a certain kernel with Alpine. Unfortunately, the kernel in question had the Hyper-V framebuffer and keyboard drivers compiled as modules, which refused to load for certain complicated and irrelevant reasons. This left the system apparently hung, with no visible output post-bootloader.

In the course of debugging this issue, I discovered that the kernel option earlyprintk=efi,keep made it possible to watch the kernel logs, but I found it quite difficult to figure out where in the Alpine init process things weren't working. After some research, I devised this fairly soft-touch technique.

Even if you aren't interested in debugging early boot like I was, writing init progress to /dev/kmsg adds some useful context to your dmesg dumps, so I feel this patch would be a good candidate for inclusion upstream.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/reidrankin/dev-kmsg-progress