Copy files from distro's stub filesystem and cli update script#7540
Copy files from distro's stub filesystem and cli update script#7540antonlacon wants to merge 3 commits intoLibreELEC:masterfrom
Conversation
fa3e922 to
0a9c9c4
Compare
|
Added a commit with the CLI update script which I intended to make use of this. The script is self-contained; one may copy it to /storage for testing. Its logic prioritizes as follows: Installed releases series -> latest bugfix release in series (it's willing to download the update the .tar file in this case) So... |
0a9c9c4 to
4e807f6
Compare
4e807f6 to
89a17c3
Compare
89a17c3 to
f7c3c9a
Compare
722017d to
49f0008
Compare
|
Added a commit that changes the URL it looks for releases.json to https://releases.libreelec.tv/releases_v2.json. If that URL 404s, then it falls back to https://releases.libreelec.tv/releases.json. The URL may still be overridden with the The change in release.json format is needed before the canary waiting period or updating from a nightly to stable works (or having update files in subdirectories). The script will fail gracefully / has overrides until then. The script is self-contained. Copy it to /storage and run to test. Edit L285 or so to set ARCHITECTURE, VERSION and VERSION_ID to pretend to be different devices or on a non-devel version. ex: Current release.json: New format json (second run has canary forced to 1000 days - 10.0.3 is "current" in my mock archive): |
49f0008 to
3dfe574
Compare
|
Fixed minor issues revealed by pylint. Added checking sha256sums to file downloading. |
96dd2f4 to
b4b87ad
Compare
e8f6116 to
564d3e2
Compare
564d3e2 to
407f123
Compare
e09e490 to
c401b88
Compare
c401b88 to
ffc7fc1
Compare
ffc7fc1 to
88d2281
Compare
88d2281 to
8b86c08
Compare
e36fe5e to
7987d01
Compare
|
Added Some other miscellaneous cleanups. Needs to squash before it's merged. |
7987d01 to
3054783
Compare
3054783 to
7a93257
Compare
|
The update script has been split into
|
This allows creating $DISTRO_DIR/$DISTRO/filesystem/ as a location to store files that should be copied to the image similar to how it is done for PROJECT or DEVICE filesystems. Signed-off-by: Ian Leonard <antonlacon@gmail.com>
…script Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
7a93257 to
389b131
Compare
This adds a DISTRIBUTION level filesystem to copy files into the image, similar to the existing PROJECT or DEVICE filesystems. I went to use this and found it didn't already exist.
Busybox's package.mk has been serving this role solely. Some of the scripts attached to busybox get edited by sed on install, but others are drop in files. This should be able to serve those files.
The show_config commit is to use the DISTRO_DIR var instead of hardcoding the path.