一、问题
最近自动更新后,开机出现这个错误:Failed to start setup virtual console
按照错误提示,运行:systemctl status systemd-vconsole-setup.service
结果如下:
● systemd-vconsole-setup.service - Setup Virtual Console
Loaded: loaded (/usr/lib/systemd/system/systemd-vconsole-setup.service; static; vendor preset: disabled)
Active: inactive (dead) since Tue 2018-08-28 11:43:06 CST; 1h 44min ago
Docs: man:systemd-vconsole-setup.service(8)
man:vconsole.conf(5)
Main PID: 724 (code=exited, status=0/SUCCESS)
二、解决方法
搬运英文论坛的方法
- 修改键盘布局
在YaST里面 系统–>系统键盘布局–>英语(美国)–>确定cat /etc/vconsole.conf KEYMAP=us FONT=eurlatgr.psfu FONT_MAP=none FONT_UNIMAP=
- 修改plymouth-start.service 去掉虚拟控制
cat -n /usr/lib/systemd/system/plymouth-start.service 1 [Unit] 2 Description=Show Plymouth Boot Screen 3 DefaultDependencies=no 4 # Wants=systemd-ask-password-plymouth.path systemd-vconsole-setup.service 5 Wants=systemd-ask-password-plymouth.path 6 After=systemd-vconsole-setup.service systemd-udev-trigger.service systemd-udevd.service 7 Before=systemd-ask-password-plymouth.service 8 ConditionKernelCommandLine=!plymouth.enable=0 9 10 [Service] 11 ExecStart=/usr/sbin/plymouthd --mode=boot --pid-file=/run/plymouth/pid --attach-to-session 12 ExecStartPost=-/usr/bin/plymouth show-splash 13 Type=forking 14 KillMode=none 15 SendSIGKILL=no
- 重建引导
mkinitrd reboot