From e71519d3587ea53e925dc61edeb77dac329e067e Mon Sep 17 00:00:00 2001 From: Artem Smirnov Date: Wed, 22 Aug 2018 15:33:35 +0300 Subject: [PATCH] image_builder: add exit code true --- image_builder/autobuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image_builder/autobuild.sh b/image_builder/autobuild.sh index a27c0fee..952e3780 100755 --- a/image_builder/autobuild.sh +++ b/image_builder/autobuild.sh @@ -29,8 +29,8 @@ export IMAGE_PATH="$(pwd)/image/$(basename -s ".git" ${TARGET_REPO})_${IMAGE_VER ./image_config.sh get_image ${IMAGE_PATH} $(jq '.source_image' -r ${TARGET_CONFIG}) if [[ $(arch) != 'armv7l' ]]; then - mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc 2&> /dev/null - 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 2&> /dev/null + mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc 2> /dev/null || true + 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 2> /dev/null || true ./image_config.sh copy_to_chroot ${IMAGE_PATH} './qemu-arm-resin' '/usr/bin/qemu-arm-static' fi