• Hannes Reinecke's avatar
    tty: Set correct tty name in 'active' sysfs attribute · d8a5dc30
    Hannes Reinecke authored
    The 'active' sysfs attribute should refer to the currently active tty
    devices the console is running on, not the currently active console.
    
    The console structure doesn't refer to any device in sysfs, only the tty
    the console is running on has.  So we need to print out the tty names in
    'active', not the console names.
    
    This resolves an issue on s390 platforms in determining the correct
    console device to use.
    
    Cc: Lennart Poettering <lennart@poettering.net>
    Cc: Kay Sievers <kay@vrfy.org>
    Cc: Jiri Slaby <jslaby@suse.cz>
    Cc: David Herrmann <dh.herrmann@gmail.com>
    Signed-off-by: default avatarWerner Fink <werner@suse.de>
    Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
    Cc: stable <stable@vger.kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    d8a5dc30
sysfs-tty 4 KB