Thanks for that.
The following is not a reply to you but is more information relating to x86 targets.
I replied to keep it tied to the thread of consciousness. ![]()
I did a bit of analysis and it looks like the x86 builds may be
too generalized to get the device specific package list in the
one case of target x86/geode.
The script could map to generic in all x86 cases and provide
a note about manual intervention for the x86/geode case.
With the possibility of more changes in the snapshot ecosystem,
I'm inclined to not do a lot of work to customize the script for it.
Some info from my analysis:
On https://downloads.openwrt.org/snapshots/targets/
There are 4 sub-directories for x86 which would be nice if they match
the json $.release.target value from ubus call system board
so the script can build a functional URL.
x86/64/
x86/generic/
x86/geode/
x86/legacy/
To get the device specific package list with jsonfilter of the profiles.json file,
the system board value with json key $.board_name should match
one of the keys under json path $.profiles[*]
https://downloads.openwrt.org/snapshots/targets/x86/64/profiles.json has 32 default packages listed and has $profiles[*] genericwith 12 device specific packages listed and nothing else from yourubuscall example that seems to align but the script could do a static mapping togeneric`.
https://downloads.openwrt.org/snapshots/targets/x86/generic/profiles.json has 32 default packages listed and has $profiles[*] genericwith 12 device specific packages listed but the script could do a static mapping togeneric`.
https://downloads.openwrt.org/snapshots/targets/x86/geode/profiles.json has 32 default packages listed and has $profiles[*] generic geos`
profile generic has 4 device specific packages listed
profile geos has 16 device specific packages listed
I do not know how the user or installer chooses the package list.
https://downloads.openwrt.org/snapshots/targets/x86/legacy/profiles.json has 32 default packages listed and has $profiles[*] genericwith 13 device specific packages listed but the script could do a static mapping togeneric`.
Looking at profiles.json file data for non-x86 targets under
https://downloads.openwrt.org/snapshots/targets/
it looks like the "normal" names are used so the script should work fine.
Looking at profiles.json file data for x86 targets under
non-snapsot versions, it looks like the same situation
as the snapshots versions, so the issue is not with
snapshots and it is with x86. At least there are only 4
profiles.json files to possibly manually get data from
and only one has more than one device profile to use.
That's it for now.