mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-21 20:16:30 +00:00
Fix rauc hook compatible compare logic (#1296)
The script looks at the current installations strings, which use haos and generic-x86-64 respectively. Replace them with the old strings to make the compare match and allow downgrades.
This commit is contained in:
parent
dfbf20ede3
commit
92bd5e9fa0
@ -10,13 +10,13 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
# Be compatible with upcomming releases using haos OS ID
|
# Be compatible with upcomming releases using haos OS ID
|
||||||
# shellcheck disable=SC2039
|
# shellcheck disable=SC2039
|
||||||
rauc_new_os_compatible=${RAUC_SYSTEM_COMPATIBLE/hassos-/haos-}
|
rauc_new_os_compatible=${RAUC_SYSTEM_COMPATIBLE/haos-/hassos-}
|
||||||
if [ "$RAUC_MF_COMPATIBLE" = "${rauc_new_os_compatible}" ]; then
|
if [ "$RAUC_MF_COMPATIBLE" = "${rauc_new_os_compatible}" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
# intel-nuc: Be compatible with upcomming generic-x86-64
|
# intel-nuc: Be compatible with upcomming generic-x86-64
|
||||||
# shellcheck disable=SC2039
|
# shellcheck disable=SC2039
|
||||||
rauc_new_board_compatible=${rauc_new_os_compatible/intel-nuc/generic-x86-64}
|
rauc_new_board_compatible=${rauc_new_os_compatible/generic-x86-64/intel-nuc}
|
||||||
if [ "$RAUC_MF_COMPATIBLE" = "${rauc_new_board_compatible}" ]; then
|
if [ "$RAUC_MF_COMPATIBLE" = "${rauc_new_board_compatible}" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user