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/
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.
Issues #49 and #47 are closely related.
Some people have issues with the beaglebone black in that modesetting doesn't
work properly and the way to workaround it is to force the fbdev driver via
xorg.conf.
And if using the onboard hdmi, or an lcd4/lcd7 you need 16bit, so set that via
the xorg.conf with a commented out section to set it to 24bit if you are using
either the bbb-exp or bbb-view.
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.
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.