mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-20 14:59:03 +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:
|
packages:
|
||||||
- name: "kairos-overlay-files"
|
- name: "kairos-overlay-files"
|
||||||
category: "static"
|
category: "static"
|
||||||
version: "1.1.13"
|
version: "1.1.14"
|
||||||
|
@@ -3,12 +3,15 @@ Description=kairos interactive-installer
|
|||||||
After=sysinit.target
|
After=sysinit.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
# input/output to tty as its interactive
|
||||||
|
# otherwise it will be silent and with no input
|
||||||
StandardInput=tty
|
StandardInput=tty
|
||||||
StandardOutput=journal+console
|
StandardOutput=tty
|
||||||
LimitNOFILE=49152
|
LimitNOFILE=49152
|
||||||
ExecStartPre=-/bin/sh -c "dmesg -D"
|
ExecStartPre=-/bin/sh -c "dmesg -D"
|
||||||
TTYPath=/dev/tty1
|
TTYPath=/dev/tty1
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/usr/bin/kairos-agent interactive-install --shell
|
ExecStart=/usr/bin/kairos-agent interactive-install --shell
|
||||||
|
TimeoutStopSec=10s
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@@ -4,7 +4,7 @@ After=sysinit.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
StandardInput=tty
|
StandardInput=tty
|
||||||
StandardOutput=journal+console
|
StandardOutput=tty
|
||||||
LimitNOFILE=49152
|
LimitNOFILE=49152
|
||||||
ExecStartPre=-/bin/sh -c "dmesg -D"
|
ExecStartPre=-/bin/sh -c "dmesg -D"
|
||||||
ExecStartPre=-/bin/sh -c "sysctl -w net.core.rmem_max=2500000"
|
ExecStartPre=-/bin/sh -c "sysctl -w net.core.rmem_max=2500000"
|
||||||
|
@@ -4,10 +4,11 @@ After=sysinit.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
StandardInput=tty
|
StandardInput=tty
|
||||||
StandardOutput=journal+console
|
StandardOutput=tty
|
||||||
LimitNOFILE=49152
|
LimitNOFILE=49152
|
||||||
TTYPath=/dev/tty1
|
TTYPath=/dev/tty1
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/usr/bin/kairos-agent reset --unattended --reboot
|
ExecStart=/usr/bin/kairos-agent reset --unattended --reboot
|
||||||
|
TimeoutStopSec=10s
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@@ -4,7 +4,7 @@ After=sysinit.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
StandardInput=tty
|
StandardInput=tty
|
||||||
StandardOutput=journal+console
|
StandardOutput=tty
|
||||||
LimitNOFILE=49152
|
LimitNOFILE=49152
|
||||||
ExecStartPre=-/bin/sh -c "dmesg -D"
|
ExecStartPre=-/bin/sh -c "dmesg -D"
|
||||||
TTYPath=/dev/tty1
|
TTYPath=/dev/tty1
|
||||||
|
Reference in New Issue
Block a user