mirror of
https://github.com/home-assistant/operating-system.git
synced 2026-04-18 07:56:19 +01:00
As stated in the docs [1], post-install hook is not executed if the slot already has an install hook defined. Merge the post-install hook with the install hook to fix CM5 migration for Yellow. [1] https://rauc.readthedocs.io/en/latest/using.html#slot-hooks
30 lines
432 B
Groovy
30 lines
432 B
Groovy
[update]
|
|
compatible={{ env "ota_compatible" }}
|
|
version={{ env "ota_version" }}
|
|
|
|
[bundle]
|
|
format=verity
|
|
|
|
[hooks]
|
|
filename=hook
|
|
hooks=install-check;
|
|
|
|
[image.boot]
|
|
filename=boot.vfat
|
|
hooks=install;
|
|
|
|
[image.kernel]
|
|
filename=kernel.img
|
|
{{- if eq (env "BOOTLOADER") "tryboot" }}
|
|
hooks=post-install;
|
|
{{- end }}
|
|
|
|
[image.rootfs]
|
|
filename=rootfs.img
|
|
|
|
{{- if eq (env "BOOT_SPL") "true" }}
|
|
[image.spl]
|
|
filename=spl.img
|
|
hooks=install
|
|
{{- end }}
|