image-builder-odroid-c2
image-builder-odroid-c2 copied to clipboard
Build fails when extracting the rootfs
docker run --rm --privileged -v /home/shaleh/repos/docker/image-builder-odroid-c2:/workspace -v /boot:/boot -v /lib/modules:/lib/modules -e VERSION image-builder-odroid-c2
+ '[' '!' -f /.dockerenv ']'
+ BUILD_RESULT_PATH=/workspace
+ BUILD_PATH=/build
+ HYPRIOT_OS_VERSION=v0.7.2
+ ROOTFS_TAR=rootfs-arm64-v0.7.2.tar.gz
+ ROOTFS_TAR_PATH=/workspace/rootfs-arm64-v0.7.2.tar.gz
+ ROOT_PARTITION_SIZE=800M
+ HYPRIOT_IMAGE_VERSION=dirty
+ HYPRIOT_IMAGE_NAME=sd-card-odroid-c2-dirty.img
+ IMAGE_ROOTFS_PATH=/image-rootfs.tar.gz
+ QEMU_ARCH=aarch64
+ export HYPRIOT_IMAGE_VERSION
+ export DOCKER_ENGINE_VERSION=1.9.1-1
+ DOCKER_ENGINE_VERSION=1.9.1-1
+ export DOCKER_COMPOSE_VERSION=1.5.2-80
+ DOCKER_COMPOSE_VERSION=1.5.2-80
+ export DOCKER_MACHINE_VERSION=0.4.1-72
+ DOCKER_MACHINE_VERSION=0.4.1-72
+ rm -rf /build
+ mkdir -p /build
+ '[' '!' -f /workspace/rootfs-arm64-v0.7.2.tar.gz ']'
+ tar -xzf /workspace/rootfs-arm64-v0.7.2.tar.gz -C /build
make: *** [sd-image] Error 100
Built on Ubuntu 14.04 using Docker from their deb repo.
@shaleh Should not break at this point, but we use Docker running inside a Vagrant box because of guestfish. Don't know how it behaves on a Linux machine.
That was my frustration too.It looks like a failure to unpack the tar. But I can use tar directly.
Suggestions on where to start debugging this?
Just tried the make sd-image on ubuntu server 16.04 and there is no problem at all.
I gave up last summer. Thanks for the reminder to try again.
just try make sd-image and if you want to have the latest kernel v.4.12.0-rc7 I've made one available to make you life easier.
https://github.com/gdeverlant/image-builder-odroid-c2/releases/tag/v0.3.3
Enjoy !