From 9ba9a4f70c79594002f4978f34773c5b67729c79 Mon Sep 17 00:00:00 2001 From: D4rk4 Date: Fri, 31 Jul 2020 16:30:17 +0200 Subject: [PATCH] +idle --- contrib/ansible/ansible.cfg | 2 +- contrib/firstboot.sh | 1 + contrib/mfg.service | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/ansible/ansible.cfg b/contrib/ansible/ansible.cfg index 76736ff..3ac1009 100644 --- a/contrib/ansible/ansible.cfg +++ b/contrib/ansible/ansible.cfg @@ -7,4 +7,4 @@ roles_path = roles library = library [connection] pipelining=True - +control_path = /tmp/%%r@%%h:%%p diff --git a/contrib/firstboot.sh b/contrib/firstboot.sh index 170ded0..afc375b 100755 --- a/contrib/firstboot.sh +++ b/contrib/firstboot.sh @@ -3,6 +3,7 @@ bootflag='/.manufactured' groot='/opt/coins-demo' k8sDemoWA () { + reset echo 'Disabling swap space...' sync && swapoff -a && sed -i '/ swap / s/^/#/' /etc/fstab } diff --git a/contrib/mfg.service b/contrib/mfg.service index 46bd6ee..4aa829a 100644 --- a/contrib/mfg.service +++ b/contrib/mfg.service @@ -3,7 +3,7 @@ Description=Manufacturing service After=serial-getty@ttyS0.service [Service] -Type=oneshot +Type=idle ExecStart=/opt/coins-demo/contrib/firstboot.sh StandardInput=tty StandardOutput=tty @@ -11,6 +11,8 @@ TTYPath=/dev/ttyS0 TTYReset=yes #TTYVHangup=yes KillMode=none +TimeoutSec=0 +RemainAfterExit=yes [Install] WantedBy=multi-user.target