fix
This commit is contained in:
parent
6b089ea9e8
commit
6d6b6d0de0
2 changed files with 3 additions and 3 deletions
|
@ -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 ; \
|
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 ; \
|
chmod +x /usr/bin/werf ; \
|
||||||
git clone https://git.ix.gs/public/coins-demo.git /opt/coins-demo ; \
|
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 daemon-reload ; \
|
||||||
systemctl enable mfg.service ; \
|
systemctl enable mfg.service ; \
|
||||||
systemctl enable serial-getty@ttyS0.service ; \
|
systemctl enable serial-getty@ttyS0.service ; \
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Manufacturing service
|
Description=Manufacturing service
|
||||||
After=serial-getty@ttyS0.service
|
After=serial-getty@ttyS0.service
|
||||||
After=docker.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/opt/coins-demo/contrib/firstboot.sh
|
ExecStart=/opt/coins-demo/contrib/firstboot.sh
|
||||||
StandardInput=tty
|
StandardInput=tty
|
||||||
|
StandardOutput=tty
|
||||||
TTYPath=/dev/ttyS0
|
TTYPath=/dev/ttyS0
|
||||||
TTYReset=yes
|
TTYReset=yes
|
||||||
TTYVHangup=yes
|
#TTYVHangup=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue