[arch-general] Configure a console font without initrd
Hello. I set `KEYMAP' and `FONT' in `/etc/vconsole.conf'. `sudo /usr/lib/systemd/systemd-vconsole-setup' works. But how can I use it after `reboot'? `mkinitcpio.conf' is not an option because I don't use initrd. I tried to add the above line to `/etc/rc.local', but it did not work. Thanks
On Wed, Feb 20, 2013 at 12:34 PM, <jugree@lavabit.com> wrote:
Hello.
I set `KEYMAP' and `FONT' in `/etc/vconsole.conf'. `sudo /usr/lib/systemd/systemd-vconsole-setup' works. But how can I use it after `reboot'?
`mkinitcpio.conf' is not an option because I don't use initrd. I tried to add the above line to `/etc/rc.local', but it did not work.
Thanks
Hi, as you may know /etc/rc.local isn't parsed anymore since the migration to systemd, you could use this service unit to re-enable it (or in fact to run any script at boot, change the file at will): [heybeavis] j:0 /usr/lib/systemd/system $ cat rc-local.service [Unit] Description=/etc/rc.local Compatibility ConditionPathExists=/etc/rc.local [Service] Type=forking ExecStart=/etc/rc.local [Install] WantedBy=default.target Alias=rc-local.service Also don't forget to give /etc/rc.local execution rights. Now if you would let me and out of curiosity, what are you using instead initrd? In the event you decide to go with the initrd again you need to add "consolefont" (without quotes of course) to /etc/mkinitcpio.conf and your /etc/vconsole.conf file should look like this: KEYMAP=us-acentos FONT=ter-i12n In this particular case ter-i12n belongs to the Terminus font, the one I use for both ttys and vtys.
On Wednesday 20 Feb 2013 23:28:46 Martín Cigorraga wrote:
[Unit] Description=/etc/rc.local Compatibility ConditionPathExists=/etc/rc.local
[Service] Type=forking ExecStart=/etc/rc.local
[Install] WantedBy=default.target Alias=rc-local.service
Wouldn't Type=oneshot (+ optionally RemainAfterExit=true) be more appropriate for a script that is run once at boot? Type=forking should also specify a PIDFile. Paul
On Thu, Feb 21, 2013 at 8:08 AM, Paul Gideon Dann <pdgiddie@gmail.com>wrote:
On Wednesday 20 Feb 2013 23:28:46 Martín Cigorraga wrote:
[Unit] Description=/etc/rc.local Compatibility ConditionPathExists=/etc/rc.local
[Service] Type=forking ExecStart=/etc/rc.local
[Install] WantedBy=default.target Alias=rc-local.service
Wouldn't Type=oneshot (+ optionally RemainAfterExit=true) be more appropriate for a script that is run once at boot? Type=forking should also specify a PIDFile.
Paul
Thank you very much Paul for your observations, I'm gonna fix it!
On Wed, Feb 20, 2013 at 4:34 PM, <jugree@lavabit.com> wrote:
Hello.
I set `KEYMAP' and `FONT' in `/etc/vconsole.conf'. `sudo /usr/lib/systemd/systemd-vconsole-setup' works. But how can I use it after `reboot'?
`mkinitcpio.conf' is not an option because I don't use initrd. I tried to add the above line to `/etc/rc.local', but it did not work.
But independently of using initrd or not, `systemd-vconsole-setup` is run by the service `systemd-vconsole-setup.service`, which in turn is WantedBy `sysinit.target`. So all should be automatic... Can you show us the output of $ systemctl status systemd-vconsole-setup.service and $ systemctl show systemd-vconsole-setup.service ? Regards -- Rodrigo
On Thu, Feb 21, 2013 at 12:45 PM, Rodrigo Rivas <rodrigorivascosta@gmail.com> wrote:
On Wed, Feb 20, 2013 at 4:34 PM, <jugree@lavabit.com> wrote:
Hello.
I set `KEYMAP' and `FONT' in `/etc/vconsole.conf'. `sudo /usr/lib/systemd/systemd-vconsole-setup' works. But how can I use it after `reboot'?
`mkinitcpio.conf' is not an option because I don't use initrd. I tried to add the above line to `/etc/rc.local', but it did not work.
But independently of using initrd or not, `systemd-vconsole-setup` is run by the service `systemd-vconsole-setup.service`, which in turn is WantedBy `sysinit.target`. So all should be automatic...
Can you show us the output of $ systemctl status systemd-vconsole-setup.service and $ systemctl show systemd-vconsole-setup.service ?
Regards -- Rodrigo
If the video driver is loaded after the vconsole has been set up, the new console won't inherit the settings. So the only proper solutions are either loading the driver in the initrd or building it into the kernel.
On Thu, Feb 21, 2013 at 1:02 PM, Jan Steffens <jan.steffens@gmail.com>wrote:
On Thu, Feb 21, 2013 at 12:45 PM, Rodrigo Rivas <rodrigorivascosta@gmail.com> wrote:
On Wed, Feb 20, 2013 at 4:34 PM, <jugree@lavabit.com> wrote:
Hello.
I set `KEYMAP' and `FONT' in `/etc/vconsole.conf'. `sudo /usr/lib/systemd/systemd-vconsole-setup' works. But how can I use it after `reboot'?
`mkinitcpio.conf' is not an option because I don't use initrd. I tried to add the above line to `/etc/rc.local', but it did not work.
But independently of using initrd or not, `systemd-vconsole-setup` is run by the service `systemd-vconsole-setup.service`, which in turn is WantedBy `sysinit.target`. So all should be automatic...
Can you show us the output of $ systemctl status systemd-vconsole-setup.service and $ systemctl show systemd-vconsole-setup.service ?
Regards -- Rodrigo
If the video driver is loaded after the vconsole has been set up, the new console won't inherit the settings. So the only proper solutions are either loading the driver in the initrd or building it into the kernel.
Oh! I see. But systemd-modules-load.service is also WantedBy `sysinit.target`. So... what if you add a line to the systemd-vconsole-setup.service saying "After=sys-class-graphics-fb0.device" or whatever it is called? In theory, it should work.
participants (5)
-
Jan Steffens
-
jugree@lavabit.com
-
Martín Cigorraga
-
Paul Gideon Dann
-
Rodrigo Rivas