Skip to content

/etc/vconsole.conf must be always included into initrd, even in generic initrds #796

@mikhailnov

Description

@mikhailnov

systemd-vconsole-setup is run in initrd for the first time. Seems that all VT settings of newely openned TTYs after startup are inherited from what was set up at initrd stage. See .g. this code: https://github.com/systemd/systemd/blob/1405cb653ae8588404e64af0265bb0bec47537b4/src/vconsole/vconsole-setup.c#L209

Now dracut copies /etc/vconsole.conf only if a host-only initrd is being built.

This results to non-ASCII symbols being krakozybras in TTYs despite correct settings in /etc/vconsole.conf when a generic inird is built. See this screenshot:
image

The I run systemctl restart systemd-vconsole-setup and get a correct font:
image

It is reported that, when /etc/vconsole.conf is copied to initrd, this problem does not happen.
I can't understand the current logics in dracut well enough.
And I am not completely sure that copying /etc/vconsole.conf into initrd is a good solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions