Closed FRozanski closed 6 years ago
You need to use brickstrap create-tar
to create the tar file, not docker save
.
In this way?
fifi@tesla-vb:~/DockerSavedImages$ sudo brickstrap create-tar ev3dev/ev3dev-jessie-rpi2-generic ev3dev.tar
Checking docker image tar version...
tar 1.27.1-2+deb8u1
Creating ev3dev.tar from ev3dev/ev3dev-jessie-rpi2-generic...
done
Appending /brickstrap/_tar-only/*
done
Copying ev3dev.tar to /home/fifi/DockerSavedImages ...
done
fifi@tesla-vb:~/DockerSavedImages$ sudo brickstrap create-image ev3dev.tar ev3dev.img
Creating ev3dev.img from ev3dev.tar...
libguestfs: error: tar_in: write error on directory: /:
fifi@tesla-vb:~/DockerSavedImages$ ls
ev3dev.img ev3dev.tar
Ether still flash empty folder.
Sounds like this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1591617
This should be fixed in brickstrap already: https://github.com/ev3dev/brickstrap/commit/f7942f9f11481e19dbc6bb2c4b3d02a9dcb5a1a0
Yeah, it was this bug. Now everything works fine. Thanks!
fifi@tesla-vb:~/DockerSavedImages$ sudo echo dash > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zz-dash-packages
fifi@tesla-vb:~/DockerSavedImages$ sudo rm -rf /var/cache/.guestfs-$UID
fifi@tesla-vb:~/DockerSavedImages$ sudo brickstrap create-image ev3dev.tar ev3dev.img
Creating ev3dev.img from ev3dev.tar...
done
fifi@tesla-vb:~/DockerSavedImages$ ls
ev3dev.img ev3dev.tar
Did you install brickstrap from the ev3dev tool PPA? e.g. what is the output of dpkg-query -s brickstrap | grep Version
?
I installed brickstrap from this repo https://github.com/ev3dev/brickstrap
fifi@tesla-vb:~$ dpkg-query -s brickstrap | grep Version
Version: 0.6.3
Looks like we need to update the readme. The latest version is now hosted on launchpad:
sudo add-apt-repository ppa:ev3dev/tools
sudo apt update
sudo apt upgrade
System information:
I am trying to do system image from docker image using brickstrap.
Then flashing ev3dev.img using Ether i getting empty folder. Same result using brickstrap installed from apt-get and github.
Also installed this packages
And perform this commands