This commit is contained in:
D4rk4 2020-07-31 16:30:17 +02:00
parent e3d346cf6a
commit 9ba9a4f70c
3 changed files with 5 additions and 2 deletions

View file

@ -7,4 +7,4 @@ roles_path = roles
library = library library = library
[connection] [connection]
pipelining=True pipelining=True
control_path = /tmp/%%r@%%h:%%p

View file

@ -3,6 +3,7 @@ bootflag='/.manufactured'
groot='/opt/coins-demo' groot='/opt/coins-demo'
k8sDemoWA () { k8sDemoWA () {
reset
echo 'Disabling swap space...' echo 'Disabling swap space...'
sync && swapoff -a && sed -i '/ swap / s/^/#/' /etc/fstab sync && swapoff -a && sed -i '/ swap / s/^/#/' /etc/fstab
} }

View file

@ -3,7 +3,7 @@ Description=Manufacturing service
After=serial-getty@ttyS0.service After=serial-getty@ttyS0.service
[Service] [Service]
Type=oneshot Type=idle
ExecStart=/opt/coins-demo/contrib/firstboot.sh ExecStart=/opt/coins-demo/contrib/firstboot.sh
StandardInput=tty StandardInput=tty
StandardOutput=tty StandardOutput=tty
@ -11,6 +11,8 @@ TTYPath=/dev/ttyS0
TTYReset=yes TTYReset=yes
#TTYVHangup=yes #TTYVHangup=yes
KillMode=none KillMode=none
TimeoutSec=0
RemainAfterExit=yes
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target