image_builder: temp solution for fix mount if already mounted

This commit is contained in:
Artem Smirnov
2018-08-20 18:07:19 +03:00
parent e7a7a87e48
commit b419b400ba

View File

@@ -1,14 +1,20 @@
#! /bin/bash
set -e
DEBIAN_FRONTEND='noninteractive'
LANG='C.UTF-8'
LC_ALL='C.UTF-8'
# решить проблему с тем что если уже подмонтированно все
#
# mount: binfmt_misc is already mounted or /proc/sys/fs/binfmt_misc busy
# binfmt_misc is already mounted on /proc/sys/fs/binfmt_misc
# ./manual.sh: line 9: echo: write error: File exists
#
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register
set -e
apt install unzip wget
BUILD_DIR=$(pwd)