While we don't release an rpi2 specific build, there are still people
out there that build their own because they don't want to use Nexmon.
This updates the rpi2 script to keep up with the changes for the rpi3
while leaving out nexmon/rpi3 bluetooth bits.
Also update chmod because we don't need it.
Without adding machine names to the systemd-nspawn calls, if you attempt
to build 2 armhf images in parallel, it will fail claiming a machine of
the name kali-armhf already exists. This should fix that issue.
Using systemd-nspawn allows us to build the images in parallel without
worry of unmounting /dev screwing up and then the "cleanup" in the
script rm'ing /dev and leaving systems in a weird state requiring a
reboot.
However, since some people still use systems without systemd, we leave
the mount commands in the script (but commented out) so they can
uncomment and just :%s/systemd-nspawn/chroot/
Once upon a time, btrfs was considered for the filesystem for the
chromebooks and utilite, but it ended up not panning out as well as I
would have liked. Since we don't need it in the base images, remove it,
people can add it at any time in the future if they're actually using
btrfs on their external media.
Every so often qemu will complain that a package with a lot of files in
it, typical icons, is corrupt when it is not. Add in a little
workaround that checks that apt-get install didn't error out and if it
did, re-run to fix it.
Also add in the 3 patches for veyron, as well as a new kernel config.
Also remove my internal nameserver from veyron so people stop running
into issues when building the image.
On some machines, it takes kpartx a little bit longer to respond, so
add a 5 second sleep after running the kpartx command to ensure that it
completes before continuing.
This allows us to test that the cross compiler can be found before we start.
We don't do this check in the beaglebone black or rpi because they use their own cross compilers during build.
pixz seems to have issues compressing the image files on 32bit systems.
Since we will always build official images on 64bit, only set it to compress and sha1sum the compressed file on 64bit.
Signed-off-by: Steev Klimaszewski <steev@gentoo.org>
Previously, the sha1sum command was including the path to the files. This isn't necessary, so remove it, and gives us the advantage of sha1sum checking working when the file isn't in the exact path that it was built.