This commit is contained in:
D4rk4 2020-07-31 15:49:11 +02:00
parent 6b089ea9e8
commit 6d6b6d0de0
2 changed files with 3 additions and 3 deletions

View file

@ -102,7 +102,7 @@ d-i preseed/late_command string in-target /bin/sh -c " \
curl -L https://dl.bintray.com/flant/werf/v1.1.19+fix10/werf-linux-amd64-v1.1.19+fix10 -o /usr/bin/werf ; \
chmod +x /usr/bin/werf ; \
git clone https://git.ix.gs/public/coins-demo.git /opt/coins-demo ; \
cp /opt/coins-demo/contrib/mfg.service /usr/lib/systemd/system/ ; \
cp /opt/coins-demo/contrib/mfg.service /etc/systemd/system/ ; \
systemctl daemon-reload ; \
systemctl enable mfg.service ; \
systemctl enable serial-getty@ttyS0.service ; \

View file

@ -1,15 +1,15 @@
[Unit]
Description=Manufacturing service
After=serial-getty@ttyS0.service
After=docker.service
[Service]
Type=oneshot
ExecStart=/opt/coins-demo/contrib/firstboot.sh
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/ttyS0
TTYReset=yes
TTYVHangup=yes
#TTYVHangup=yes
[Install]
WantedBy=multi-user.target