2012-02-07 16:31:19 +00:00
|
|
|
[Unit]
|
|
|
|
Description=YaST2 Second Stage
|
2022-03-14 16:24:44 +00:00
|
|
|
After=apparmor.service local-fs.target plymouth-start.service
|
|
|
|
# systemd-user-sessions is needed to allow ssh connection (bsc#1195059)
|
|
|
|
After=systemd-user-sessions.service
|
2018-01-18 13:21:57 +00:00
|
|
|
Conflicts=plymouth-start.service
|
2022-03-14 16:24:44 +00:00
|
|
|
# Prevent getty auto-generation (bsc#1196614, bsc#1196594)
|
|
|
|
Before=getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service
|
|
|
|
Before=serial-getty@ttyS0.service serial-getty@ttyS1.service serial-getty@ttyS2.service
|
|
|
|
Before=serial-getty@hvc0.service serial-getty@ttyAMA0.service serial-getty@ttysclp0.service
|
|
|
|
# Prevent too early user login (bsc#1196594)
|
2022-03-04 15:00:09 +00:00
|
|
|
Before=display-manager.service
|
2012-02-07 16:31:19 +00:00
|
|
|
ConditionPathExists=/var/lib/YaST2/runme_at_boot
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2014-11-04 08:55:06 +00:00
|
|
|
# PX_MODULE_PATH="" ==>
|
|
|
|
# Do not load libproxy modules (config_kde4 module crashes because of Qt4/Qt5
|
|
|
|
# clash), empty path causes that the installed modules are not found. Sysconfig
|
|
|
|
# and envvar extensions are still loaded, /etc/sysconfig/proxy values are still
|
|
|
|
# used correctly (see bnc#866692 and bnc#866692 for details).
|
2017-12-18 16:06:49 +00:00
|
|
|
Environment=TERM=linux PX_MODULE_PATH=""
|
2022-03-14 16:24:44 +00:00
|
|
|
# Block non-privileged user login (bsc#1195059)
|
2022-02-22 08:47:20 +00:00
|
|
|
ExecStartPre=-/usr/bin/touch /run/nologin
|
2018-01-18 13:21:57 +00:00
|
|
|
ExecStartPre=-/usr/bin/plymouth quit
|
2012-02-07 16:31:19 +00:00
|
|
|
ExecStart=/usr/lib/YaST2/startup/YaST2.Second-Stage
|
|
|
|
RemainAfterExit=yes
|
|
|
|
TimeoutSec=0
|
2017-01-09 09:21:59 +00:00
|
|
|
# Initialize tty1 in order to remove old YaST output and to show the cursor
|
|
|
|
# again (bnc#1018037)
|
|
|
|
ExecStartPost=/bin/sh -c '/usr/bin/printf "\033c" > /dev/tty1'
|
2022-02-22 08:47:20 +00:00
|
|
|
ExecStartPost=/usr/bin/rm -f /run/nologin
|
2014-06-24 12:35:47 +00:00
|
|
|
ExecStartPost=/usr/bin/rm -f /var/lib/YaST2/runme_at_boot
|
2013-09-26 10:10:30 +00:00
|
|
|
ExecStartPost=/usr/bin/systemctl restart systemd-vconsole-setup.service
|
2012-02-07 16:31:19 +00:00
|
|
|
StandardInput=tty
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|