Hello,
I’m using Apalis IMX8QM on Ixora v1.2A carrier board. Kernel version: 5.4.161-5.7.0-devel+git.0f0011824921.
I’m trying to update my operating system by Ostree repository. I’ve done everything what is presented in this tutorial: OSTree. Everything gone fine.
Unfortunately my OS is not only made by Yocto, but also customized by Torizon Core Builder. And here comes the problem - how can I properly extract Ostree repository after build the image? How can I properly upload it to my device and make update?
Firstly I thought that new ostree repository will be in /deploy
directory in Torizon Core Builder, and I found it in torizon-core-docker-apalis-imx8.ota.tar.zst
file. After extracting I put to into my device by USB flash drive. When I tried use ostree pull-local <dir> base
command I got error:
error: Commit c6be0424398ba4d7676c8da5ba1a6021ac3a53b8bad2a28c3056331373548efb: Commit has no requested ref ?base? in ref binding metadata (?5/apalis-imx8/torizon/torizon-core-docker/testing?)
I tried to do this in a different ways (copy diffrent files from torizon-core-docker-apalis-imx8.ota.tar.zst
, create repo and ref “base” locally), but all the time I got the same error. After this I noticed there is the option to serve ostree repo via http using torizon core builder (ostree serve
command). I’ve done this, ostree repo was properly uploaded on port 8080, but when I try to get this on my device and get info about refs, or download ref “base” I get the same error:
root@apalis-imx8-07029113:/home/torizon# ostree remote add test http://192.168.1.31:8080/
root@apalis-imx8-07029113:/home/torizon# ostree remote refs test
ostree remote refs: ostree_repo_remote_fetch_summary_with_options: GPG feature is disabled in a build time
error: Remote refs not available; server has no summary file
root@apalis-imx8-07029113:/home/torizon# ostree pull test base
Receiving metadata objects: 2/(estimating) 469 bytes/s 938 bytes
error: Commit eaba8849f9d255bdf11dd1aefefeeaac07bb19bd88649c0fe47a18b7880525a8: Commit has no requested ref ?base? in ref binding metadata (?5/apalis-imx8/torizon/torizon-core-docker/testing?)
What is properly way to get new ostree repository on my device and make the update? Am I doing something wrong or is there any other option to receive new ostree commit? You can also tell what the lines in tcbuild.yaml file below are for?
output:
# >> OSTree deployment configuration (relevant also for Easy Installer output).
# ostree:
# branch: my-dev-branch
# commit-subject: "OSTree commit subject"
# commit-body: "OSTree commit body"
# >> Parameters for deploying to an Easy Installer image.
To rebuild my image I put “base” as ostree branch. I haven’t use OSTree before.
Best regards,
Michael