mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-30 22:09:10 +00:00
Fix services output (#559)
This commit is contained in:
parent
f2391cef29
commit
5fbe73bbef
@ -1,4 +1,4 @@
|
||||
packages:
|
||||
- name: "kairos-overlay-files"
|
||||
category: "static"
|
||||
version: "1.1.14"
|
||||
version: "1.1.15"
|
||||
|
@ -11,7 +11,11 @@ LimitNOFILE=49152
|
||||
ExecStartPre=-/bin/sh -c "dmesg -D"
|
||||
TTYPath=/dev/tty1
|
||||
RemainAfterExit=yes
|
||||
# Stop systemd messages on tty
|
||||
ExecStartPre=-/usr/bin/kill -SIGRTMIN+21 1
|
||||
ExecStart=/usr/bin/kairos-agent interactive-install --shell
|
||||
# Start systemd messages on tty
|
||||
ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1
|
||||
TimeoutStopSec=10s
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -8,8 +8,12 @@ StandardOutput=tty
|
||||
LimitNOFILE=49152
|
||||
ExecStartPre=-/bin/sh -c "dmesg -D"
|
||||
ExecStartPre=-/bin/sh -c "sysctl -w net.core.rmem_max=2500000"
|
||||
# Stop systemd messages on tty
|
||||
ExecStartPre=-/usr/bin/kill -SIGRTMIN+21 1
|
||||
TTYPath=/dev/tty1
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/kairos-agent recovery
|
||||
# Start systemd messages on tty
|
||||
ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -8,7 +8,11 @@ StandardOutput=tty
|
||||
LimitNOFILE=49152
|
||||
TTYPath=/dev/tty1
|
||||
RemainAfterExit=yes
|
||||
# Stop systemd messages on tty
|
||||
ExecStartPre=-/usr/bin/kill -SIGRTMIN+21 1
|
||||
ExecStart=/usr/bin/kairos-agent reset --unattended --reboot
|
||||
# Start systemd messages on tty
|
||||
ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1
|
||||
TimeoutStopSec=10s
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -9,7 +9,11 @@ LimitNOFILE=49152
|
||||
ExecStartPre=-/bin/sh -c "dmesg -D"
|
||||
TTYPath=/dev/tty1
|
||||
RemainAfterExit=yes
|
||||
# Stop systemd messages on tty
|
||||
ExecStartPre=-/usr/bin/kill -SIGRTMIN+21 1
|
||||
ExecStart=/usr/bin/kairos-agent install
|
||||
# Start systemd messages on tty
|
||||
ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1
|
||||
TimeoutStopSec=10s
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -7,6 +7,8 @@ stages:
|
||||
( [ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] )
|
||||
commands:
|
||||
- systemctl disable getty@tty1
|
||||
- systemctl stop getty@tty1
|
||||
- systemctl mask getty@tty1
|
||||
- systemctl enable kairos-recovery
|
||||
- name: "Starts kairos-recovery for openRC based systems"
|
||||
if: grep -q "kairos.remote_recovery_mode" /proc/cmdline && [ -f "/sbin/openrc" ]
|
||||
|
@ -5,6 +5,8 @@ stages:
|
||||
if: grep -q "kairos.reset" /proc/cmdline && [ ! -f "/sbin/openrc" ]
|
||||
commands:
|
||||
- systemctl disable getty@tty1
|
||||
- systemctl stop getty@tty1
|
||||
- systemctl mask getty@tty1
|
||||
- systemctl enable kairos-reset
|
||||
- name: "Starts kairos-reset for openRC-based systems"
|
||||
if: grep -q "kairos.reset" /proc/cmdline && [ -f "/sbin/openrc" ]
|
||||
|
@ -6,6 +6,8 @@ stages:
|
||||
( [ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] )
|
||||
commands:
|
||||
- systemctl disable getty@tty1
|
||||
- systemctl stop getty@tty1
|
||||
- systemctl mask getty@tty1
|
||||
- systemctl enable kairos
|
||||
- systemctl enable kairos-webui
|
||||
# Starts installer on boot for openRC based systems
|
||||
@ -19,6 +21,8 @@ stages:
|
||||
( [ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] )
|
||||
commands:
|
||||
- systemctl disable getty@tty1
|
||||
- systemctl stop getty@tty1
|
||||
- systemctl mask getty@tty1
|
||||
- systemctl enable kairos-interactive
|
||||
# Starts installer on boot for openRC based systems
|
||||
- if: grep -q "interactive-install" /proc/cmdline && [ -f "/sbin/openrc" ]
|
||||
|
Loading…
Reference in New Issue
Block a user