set kairos services to simple (#970)

If they are of type oneshot, systemd will wait until the pid exits
before markling the service as running. Instead it will mark them as
starting which is wrong and on livecd it causes the systemctl status
output to be on starting forever.

Instead lets set those services to simple, which means they will be
marked as started once the binary has been launched.

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka
2024-07-15 19:52:48 +02:00
committed by GitHub
parent e716dded06
commit 176010973c
4 changed files with 9 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
packages:
- name: "kairos-overlay-files"
category: "static"
version: "1.1.41"
version: "1.1.42"

View File

@@ -1,7 +1,8 @@
[Unit]
Description=kairos interactive-installer
After=sysinit.target
After=multi-user.target
[Service]
## Dont mark it as running until it finishes
Type=oneshot
# input/output to tty as its interactive
# otherwise it will be silent and with no input
@@ -17,5 +18,7 @@ ExecStart=/usr/bin/kairos-agent interactive-install --shell
# Start systemd messages on tty
ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1
TimeoutStopSec=10s
# Restart if it fails, like user doing control+c
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@@ -1,8 +1,8 @@
[Unit]
Description=kairos recovery
After=sysinit.target
After=multi-user.target
[Service]
Type=oneshot
Type=simple
StandardInput=tty
StandardOutput=tty
LimitNOFILE=49152

View File

@@ -1,8 +1,8 @@
[Unit]
Description=kairos installer
After=sysinit.target
After=multi-user.target
[Service]
Type=oneshot
Type=simple
StandardInput=tty
StandardOutput=tty
LimitNOFILE=49152