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.
Remove firmware-linux-nonfree since firmware-linux depends on it
already. Add atheros, realtek and libertas firmware packages for the
ones that didn't have it already
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.
* Fixed the path in poweron rules to correct location of hciconfig
* Script was not pulling latest submodules so was missing ducky payloads and responder
Signed-off-by: binkybear <binkybear@nethunter.com>