From: Zbigniew Jędrzejewski-Szmek Date: Wed, 12 Jul 2023 13:51:07 +0000 (+0200) Subject: units/systemd-firstboot: start the service after systemd-vconsole-setup.service X-Git-Tag: v254-rc2~3^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cfb3ebc60ae40c044142c4f484703f7bbe2b2c1;p=thirdparty%2Fsystemd.git units/systemd-firstboot: start the service after systemd-vconsole-setup.service This way, we don't start user interaction before (or while) the configured fonts are loading. Tweak the comments a bit while at it. --- diff --git a/man/systemd-vconsole-setup.service.xml b/man/systemd-vconsole-setup.service.xml index e462ef8f603..d156c482db9 100644 --- a/man/systemd-vconsole-setup.service.xml +++ b/man/systemd-vconsole-setup.service.xml @@ -32,14 +32,17 @@ Description - systemd-vconsole-setup sets up and configures either all virtual consoles, or — if the - optional TTY parameter is provided — a specific one. When the system is booting up, it's - called by systemd-udevd8 during - VT console subsystem initialization. Also, - systemd-localed.service8 invokes - it as needed when language or console changes are made. Internally, this program calls loadkeys1 and setfont8. + systemd-vconsole-setup sets up and configures either all virtual consoles, or + — if the optional TTY parameter is provided — a specific one. When the system + is booting up, systemd-vconsole-setup.service is called by + systemd-udevd8 during + VT console subsystem initialization. Also, + systemd-localed.service8 + invokes it as needed when language or console changes are made. + Internally, this program calls + loadkeys1 + and + setfont8. Execute systemctl restart systemd-vconsole-setup.service in order to apply any manual diff --git a/units/systemd-firstboot.service b/units/systemd-firstboot.service index 0c8d574ef8b..78a408708b2 100644 --- a/units/systemd-firstboot.service +++ b/units/systemd-firstboot.service @@ -15,7 +15,14 @@ ConditionPathIsReadWrite=/etc ConditionFirstBoot=yes DefaultDependencies=no -After=systemd-remount-fs.service systemd-sysusers.service systemd-tmpfiles-setup.service +# This service may need to write to the file system: +After=systemd-remount-fs.service +# Both systemd-sysusers and systemd-tmpfiles may create the root account +# (via factory files or credentials), obviating the need for us to do that: +After=systemd-sysusers.service systemd-tmpfiles-setup.service +# Let vconsole-setup do its setup before starting user interaction: +After=systemd-vconsole-setup.service + Wants=first-boot-complete.target Before=first-boot-complete.target sysinit.target Conflicts=shutdown.target