because growpart is now run at boot, we can make the base image smaller.
This does not provide any benefit when compressed (the image is still
81M compressed with xz 9), but this should be much faster to write to
the target SD card/USB drive for SBCs, where the throughput is rather
slow. Growpart will inflate the root partition to a reasonable size for
the user. Users who want more flexibility in partitioning should be
doing a chroot/PLATFORMFS install.
This makes it easier to set up an RPi SBC image for non-MMC boot by
ensuring that the right root partition is chosen. If the enumerated
(sdX-style) name changes, boot can fail.
no need to create a second file just for the version when it can be set
in lib.sh
git -c safe.directory is needed to be able to run rev-parse as root
also contains some minor refactors to arg parsing etc
The build process only replaces @@MKLIVE_VERSION@@ with the correct
version string. This can also be done by simply sourcing a version.sh file.
This way it's simpler, avoids one unnecessary build step and people
won't accidentally run an old version of a script.