Hello everyone,
I have been using a pre-built Armbian image on a Nanopi M1 Plus and I have been very happy with it.
However I have several modifications specific to my usage of the board (setup some files in /etc/, create default users, install or remove some packages, etc.) that I would like to add to the image in a repeatable way.
By repeatable I mean that I could add the set of scripts/patches/packages etc. to source control so that other people could them rebuild the same exact image.
All of the advice I have found searching the forum points to this process https://docs.armbian.com/Developer-Guide_User-Configurations/
But it does require rebuilding the whole image, including the kernel, which is very cumbersome and totally unnecessary for my use case, as 95% of what is in the stock image is good for me and I don't actually need to compile anything.
So what I am doing right now is to loop mount the image, copy or edit the files that I need changed, then use qemu to chroot into the image and install the packages I need.
But it does not feel clean and I wonder if there is a better way using Armbian scripts/tools to accomplish something similar.
Any suggestions ?