• Andrew Morton's avatar
    [PATCH] defer panic for too many items in boot parameter line · f9d4cdfc
    Andrew Morton authored
    From: Werner Almesberger <werner@almesberger.net>
    
    When passing too many unrecognized boot command line options (which become
    arguments or environment variables), the 2.6 kernel panics (unlike 2.4,
    which just ignores the extra items).  Unfortunately, this happens before
    the console is initialized, so all you get is a kernel that dies quickly,
    for no apparent reason.
    
    This is particularly irritating if using UML with
    init=something wi th a lot of ar gu men t s
    
    The patch below delays the panic until after console_init.
    
    (akpm: I mainly added this in because we have other places where the
    panic-later-on machinery is needed).
    f9d4cdfc
main.c 14.3 KB