Just a thought, but wouldn't rolling a copy of the contents of those extensions into an AllWireless.tcz extension accomplish the same thing?
Friday Evening: (Before the massive back to back outages/brown-outs caused my UPS units to say "I quit!")
@Rich, the only problem with
extensions via piCore on the Raspberry Pi is how to GET the extension ONTO the device - on CERTAIN devices especially.
Hardware specs:With Pi-4 down to Pi-1 there's an Ethernet port which some users can put to use in order to get things moving forward if they know how to wire in.
For the Pi-Zero-W and Pi-Zero-2, WiFi and BT are the only built in modes of connectivity. Pi-3 and Pi-4 are happy campers... they can go either direction.
Pi 1 and 2 are Ether only. For the Pi-Zero... without the "W" (for wireless) you're without connectivity
completely unless you OTG a USB Ethernet or WiFi.
For ALL of the listed units, USB dongles are optional in one fashion or another. NONE with WiFi support WiFi with the initial cpio.
piCore specs:The piCore image consists of a primary FAT/32 partition and a second, tiny EXT partition (which is expanded later to what ever the max SD card size is -- makes fdisk-ing "automated" for the user.) The FAT partition contains only the necessary files and overlays to act as a hardware boot-loader, a config file which take place of BIOS settings and a cmdline file which steps in for syslinux/grub settings. Being a FAT partition, permissions are "very limited" at best so there's no resemblance of /opt (for bootsync/local), there's no tce directory (so nowhere to PUT AllWireless.tcz if we wanted to) and the only hopeful if we HAD to follow
that path is the not-fool-proof "auto search for a tce folder on any block device" in tc-config BUT requires a more intimate knowledge by the user of how to manually set up tce/optional, tce/ondemand and tce/onboot.lst from outside world (ie: PC/laptop) AND becomes an obstacle for if/when the second partition is resized - with the intention of eventually becoming the "real" tce.
UPDATE: It's now Saturday morning and to quote the movie
HookSmee: I've just had an apostrophe.
Captain Hook: I think you mean an epiphany.
Smee: No... lightning has just struck my brain.
Captain Hook: Well, that must hurt.
What about "Best of Both Worlds?"
We update our piCore DISK image to contain both the normal picore-##.gz cpio, our wireless.gz add-on cpio, the kernel and the normal Pi-Only stuff.
We're now adding ###MB of bloat to a user who does NOT need wirless, BUT, to rid ourselves of that bloat, there's two reasonably simple steps:
- Remove wireless.gz from config.txt in the FAT partition.
- Delete the file wireless.gz from the FAT partition.
ALL of which can be done before the SD card is even placed into the RasPi device.
Additionally, this technically COULD be somewhat automated - say, in tc-config we
if [ $RASPI == "Pi-2" ]; then ASK TO DELETE THESE CHANGES; fi
LOL - sorry, intended for point, not actual verbiage.
For Pi-1 through Pi-4 we can launch piNoWiFi.sh which asks them if they want to remove the wireless extension, per-se' and we only pester once after the initial setup.
For everyone else, it's likely a vital component save for Pi-Zero (non-wireless) who more times than not these days get used for non-networking purposes in the first place, so an easy launch manually of piNoWiFi.sh tends to this, too. Or so says my
Apostrophe!
Thoughts and suggestions requested!