No problem. I'm glad to hear it worked out!
When you get a chance, please send me the updated script; e.g. a PR on github or attache it here. I'd like to incorporate your change. I imagine others using opkg/ipk installation will hit this issue as well.
I just added a line to the exclude section to not add the folder where my IT put the ipk files from the NI PXI Linux RT repo
/etc/opt/ - which he broke into NI and another folder.
We have disconnected systems, so in order to make sure I had all the IPK available from the NI REPO in case I wanted to install something, he loaded every .ipk from the repo into the /etc/opt/ folder - a practice most (maybe?) would not do when commissioning a Linux system. I am guessing on that part. But it was of course very large almost 2.5GB worth of packages.
I can upload the modified .sh on my fork of your repo, and post it here.
Oh, I see, you have an offline feed. There's no standard path which we can blacklist. I thought you removed some standard cache directory that got bloated on your system.
I added a blacklist option to the script ( -b ) allowing users to specify files/dirs to exclude. Might be useful here.
Just to update the thread to make sure everyone knows - the Github code is working, the -b blacklist option is fully working.
I have a working Netboot process with my PXIe-8840QC that uses the image created to load from my tftp /dhcp server. The option to utilize an nfs image as the boot is not natively supported by the NI Kernel, but could be enabled on a custom build of the kernel. I am not sure I want to go down that path just yet of a custom kernel build, as I am not a Linux expert.