Due to extras pulling in the modifications to the plymouth config file,
we were getting prompted whether to overwrite it or not. There is a
bug to fix plymouth but currently upstream needs help to work on it.
Work around it for now.
Unlike the banana pro, the banana pi seems to have an issue with
modesetting so we include an xorg config snippet to force the bpi image
to use fbdev for the graphics driver in X.
Disable 64bit options on most of the ext4 partitions, fix any /lib paths
to now be /usr/lib since /lib is just a symlink there (may have missed
some.) Add in missing services to "a few" boards, so they now also
regenerate their ssh keys at first boot as well.
This was supposed to be done for convenience, however, in practice, the
image ends up getting amd64 binaries in the kernel sources, so it
doesn't work anyway.
Updated for the new changes. Since the kernel is old, we have to use
the older cross compiler. Also libfdt-dev causes build issue with the
u-boot so we check if it is installed on the system, if it is, we
uninstall it, then at the end of the build, we reinstall it, otherwise
we carry on.
Also regenerate ssh keys on the first boot. The wiggle script hasn't
been tested, so it isn't added yet.
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.