Re: chosen/stdout-path and userland (Re: Can't boot kernel v4.0-rc2 on Koelsch)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> Hence all pieces of the puzzle are available to userspace...
> Is there another way?

My hackish way is to parse dmesg, adapt inittab at runtime and make init reload
it. Not exactly production quality, though:

+       l=$(dmesg | sed -n '/console.*enabled/ s/.*\[\(tty[A-Z]\+[0-9]\+\)\].*/\1/; T; p; q')
+       sed -i s/ttyS0/$l/g /etc/inittab
+       kill -s SIGHUP 1

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux