[systemd-devel] [PATCH 2/2] vconsole-setup: setup negative conditional on uml
artagnon at gmail.com
Sat Jul 20 03:25:56 PDT 2013
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
um Linux lacks VT102 emulation, and this is a documented fact.
Therefore, your code:
unsigned char data;
data = 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
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.
More information about the systemd-devel