Kay Sievers wrote:
> I would rather see vconsole to detect the mess and silently give up,
> instead of adding exotic options for really weird faked and wrong tty0
> setups.

um Linux lacks VT102 emulation, and this is a documented fact.
Therefore, your code:

        unsigned char data[1];

        data[0] = TIOCL_GETFGCONSOLE;
        return ioctl(fd, TIOCLINUX, data) >= 0;

is guaranteed to fail.  Not because something went "wrong", or due to
some "mess" or "fakeness", but because it was perfectly expected.  I
discussed this on LKML, and posted an explanation about this already
[1].

That said, I don't know what to do about
systemd-vconsole-setup.service: I just followed Zbyszek's suggestion.
Penalizing um Linux for not doing VT102 emulation, and always failing
a service seems user-unfriendly to me.

[1]: http://lists.freedesktop.org/archives/systemd-devel/2013-July/012150.html
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to