From 19c03729f382d137db1c62e9730420f3a25b02fb Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 9 Mar 2021 23:53:15 +0100 Subject: [PATCH] Accept installation with intel-nuc in compatible string (#1265) * Accept installation with intel-nuc in compatible string For the OS release 6 intel-nuc gets renamed to generic-x86-64. Since the machine name is in the OS compatible string we need to make sure OS release 5 installation can update to release 6 despite the new machine name. --- buildroot-external/ota/rauc-hook | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildroot-external/ota/rauc-hook b/buildroot-external/ota/rauc-hook index 3dc3d8fb1..01244bd16 100755 --- a/buildroot-external/ota/rauc-hook +++ b/buildroot-external/ota/rauc-hook @@ -14,6 +14,12 @@ case "$1" in if [ "$rauc_os_compatible" = "$RAUC_SYSTEM_COMPATIBLE" ]; then exit 0 fi + # generic-x86-64: Be compatible with intel-nuc + # shellcheck disable=SC2039 + rauc_board_compatible=${rauc_os_compatible/generic-x86-64/intel-nuc} + if [ "${rauc_board_compatible}" = "$RAUC_SYSTEM_COMPATIBLE" ]; then + exit 0 + fi echo "Compatible does not match!" 1>&2 exit 10 ;;