48 lines
1.2 KiB
Desktop File
48 lines
1.2 KiB
Desktop File
[Unit]
|
|
Description=Root password configuration
|
|
|
|
# before starting the SSH and Agama server so they use the new password
|
|
Before=sshd.service
|
|
Before=agama-web-server.service
|
|
After=checkmedia.service
|
|
|
|
# copied from YaST2-Second-Stage.service
|
|
Before=getty@tty1.service
|
|
Before=getty@tty2.service
|
|
Before=getty@tty3.service
|
|
Before=getty@tty4.service
|
|
Before=getty@tty5.service
|
|
Before=getty@tty6.service
|
|
Before=serial-getty@hvc0.service
|
|
Before=serial-getty@sclp_line0.service
|
|
Before=serial-getty@ttyAMA0.service
|
|
Before=serial-getty@ttyS0.service
|
|
Before=serial-getty@ttyS1.service
|
|
Before=serial-getty@ttyS2.service
|
|
Before=serial-getty@ttysclp0.service
|
|
|
|
# and after we process agama params like info which can contain kernel parameters
|
|
After=agama-cmdline-process.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
|
|
# disable the kernel output on the console
|
|
ExecStartPre=dmesg --console-off
|
|
# disable the systemd status messages on the console
|
|
ExecStartPre=kill -SIGRTMIN+21 1
|
|
|
|
ExecStart=live-password
|
|
|
|
# enable back the kernel output on the console
|
|
ExecStartPost=dmesg --console-on
|
|
# enable back the systemd status messages on the console
|
|
ExecStartPost=kill -SIGRTMIN+20 1
|
|
|
|
StandardOutput=tty
|
|
RemainAfterExit=true
|
|
TimeoutStartSec=infinity
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
WantedBy=rescue.target
|