Protect against first boot shenanigans (#1000)

This commit is contained in:
Itxaka 2024-08-02 11:59:49 +02:00 committed by GitHub
parent e89fe966cb
commit 16b1d80dcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 5 additions and 17 deletions

View File

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

View File

@ -5,6 +5,4 @@ Wants=network.target
[Service] [Service]
Restart=on-failure Restart=on-failure
RestartSec=5s RestartSec=5s
ExecStart=/usr/bin/kairos-agent start ExecStart=/usr/bin/kairos-agent start
[Install]
WantedBy=multi-user.target

View File

@ -20,5 +20,3 @@ ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1
TimeoutStopSec=10s TimeoutStopSec=10s
# Restart if it fails, like user doing control+c # Restart if it fails, like user doing control+c
Restart=on-failure Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@ -14,6 +14,4 @@ TTYPath=/dev/tty1
RemainAfterExit=yes RemainAfterExit=yes
ExecStart=/usr/bin/kairos-agent recovery ExecStart=/usr/bin/kairos-agent recovery
# Start systemd messages on tty # Start systemd messages on tty
ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1 ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1
[Install]
WantedBy=multi-user.target

View File

@ -14,5 +14,3 @@ ExecStart=/usr/bin/kairos-agent reset --unattended --reboot
# Start systemd messages on tty # Start systemd messages on tty
ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1 ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1
TimeoutStopSec=10s TimeoutStopSec=10s
[Install]
WantedBy=multi-user.target

View File

@ -3,6 +3,4 @@ Description=kairos installer
After=sysinit.target After=sysinit.target
[Service] [Service]
ExecStart=/usr/bin/kairos-agent webui ExecStart=/usr/bin/kairos-agent webui
TimeoutStopSec=10s TimeoutStopSec=10s
[Install]
WantedBy=multi-user.target

View File

@ -14,6 +14,4 @@ ExecStartPre=-/usr/bin/kill -SIGRTMIN+21 1
ExecStart=/usr/bin/kairos-agent install ExecStart=/usr/bin/kairos-agent install
# Start systemd messages on tty # Start systemd messages on tty
ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1 ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1
TimeoutStopSec=10s TimeoutStopSec=10s
[Install]
WantedBy=multi-user.target