Skip to content

Commit

Permalink
Fix Yellow's post-install hook for config.txt migration (#3671)
Browse files Browse the repository at this point in the history
The hook was missing in the manifest, enable it conditionally for Yellow and
add reminder to remove it once it's not needed.
  • Loading branch information
sairon authored Nov 14, 2024
1 parent b28dd8c commit 9dfbdd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions buildroot-external/ota/manifest.raucm.gtpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ hooks=install-check;

[image.boot]
filename=boot.vfat
{{- if eq (env "ota_compatible") "haos-yellow" }}
hooks=install;post-install;
{{- else }}
hooks=install;
{{- end }}

[image.kernel]
filename=kernel.img
Expand Down
2 changes: 1 addition & 1 deletion buildroot-external/ota/rauc-hook
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ check_grubenv() {
post_install_boot() {
BOOT_MNT=/mnt/boot

# Add CM5 support for Yellow. Can be removed in HAOS 15.
# Add CM5 support for Yellow. Can be removed in HAOS 15. Make sure manifest.raucm.gtpl is updated.
if [ "$RAUC_SYSTEM_COMPATIBLE" = "haos-yellow" ]; then
# Mount boot
if ! systemctl -q is-active mnt-boot.mount; then
Expand Down

0 comments on commit 9dfbdd9

Please sign in to comment.