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

WIP: Log stage-{1,2} output to secondary consoles #42255

Closed

Commits on Jun 19, 2018

  1. nixos/stage-1: Query primary console from kernel

    Do this instead of parsing the kernel command line as the default
    console might not be the virtual console, e.g. on platforms using Device
    Tree can indicate a preferred serial console with the
    /chosen/stdout-path property.
    
    This matches what dracut and Debian's initramfs-tools is doing.
    dezgeg committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    69e347c View commit details
    Browse the repository at this point in the history
  2. nixos/stage-{1,2}: Log output to secondary consoles as well

    Currently, if you pass multiple consoles to the kernel (e.g.
    'console=ttyS0 console=tty0') you only get kernel's output to the
    primary console (the one specified last) until the boot is finished
    and a getty is launched on the secondary consoles.
    
    Let's explicitly write all stage-1 and stage-2 output to the secondary
    consoles just as we additionally write them to kmsg.
    dezgeg committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    e4e54a2 View commit details
    Browse the repository at this point in the history