mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-19 10:46:22 +00:00
Fix services tty output (#557)
* Fix serivces tty output - interactive installer: output was not connected to tty so it was impossible to answer any questions - reset: was not getting the output and taking over the tty so it got overwritten by other output. It could be stopped in the middle - installer: same as above but it could lead to stopping the install in the middle of it - recovery: same as above, QR code didnt even display Signed-off-by: Itxaka <itxaka@kairos.io> * Update packages/static/kairos-overlay-files/files/etc/systemd/system/kairos-interactive.service --------- Signed-off-by: Itxaka <itxaka@kairos.io> Co-authored-by: Mauro Morales <contact@mauromorales.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
packages:
|
||||
- name: "kairos-overlay-files"
|
||||
category: "static"
|
||||
version: "1.1.13"
|
||||
version: "1.1.14"
|
||||
|
@@ -3,12 +3,15 @@ Description=kairos interactive-installer
|
||||
After=sysinit.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# input/output to tty as its interactive
|
||||
# otherwise it will be silent and with no input
|
||||
StandardInput=tty
|
||||
StandardOutput=journal+console
|
||||
StandardOutput=tty
|
||||
LimitNOFILE=49152
|
||||
ExecStartPre=-/bin/sh -c "dmesg -D"
|
||||
TTYPath=/dev/tty1
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/kairos-agent interactive-install --shell
|
||||
TimeoutStopSec=10s
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@@ -4,7 +4,7 @@ After=sysinit.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
StandardInput=tty
|
||||
StandardOutput=journal+console
|
||||
StandardOutput=tty
|
||||
LimitNOFILE=49152
|
||||
ExecStartPre=-/bin/sh -c "dmesg -D"
|
||||
ExecStartPre=-/bin/sh -c "sysctl -w net.core.rmem_max=2500000"
|
||||
|
@@ -4,10 +4,11 @@ After=sysinit.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
StandardInput=tty
|
||||
StandardOutput=journal+console
|
||||
StandardOutput=tty
|
||||
LimitNOFILE=49152
|
||||
TTYPath=/dev/tty1
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/kairos-agent reset --unattended --reboot
|
||||
TimeoutStopSec=10s
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@@ -4,7 +4,7 @@ After=sysinit.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
StandardInput=tty
|
||||
StandardOutput=journal+console
|
||||
StandardOutput=tty
|
||||
LimitNOFILE=49152
|
||||
ExecStartPre=-/bin/sh -c "dmesg -D"
|
||||
TTYPath=/dev/tty1
|
||||
|
Reference in New Issue
Block a user