Skip to content

Commit d7d9d52

Browse files
committed
flatcar-postinst: Note for tweaking download logic later
Once update-engine can download OEM payloads we should use them as is instead of overwriting them in the postinst hook.
1 parent 381da58 commit d7d9d52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flatcar-postinst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ if [ "${OEMID}" != "" ] && { [ -e "${INSTALL_MNT}/share/flatcar/oems/${OEMID}" ]
127127
fi
128128
done
129129
# Note that in the case of VERSION=NEXT_VERSION we will replace the running sysext and maybe it's better
130-
# to do so than not because it allows to recover from a corrupted file (where the corruption happened on disk)
130+
# to do so than not because it allows to recover from a corrupted file (where the corruption happened on disk).
131+
# However, as soon as update-engine would already download the payload, we should skip the overwriting.
131132
SUCCESS=false
132133
# Preferred is to download from the location given by the Omaha response
133134
# which only works with a new update-engine client that creates "full-response",

0 commit comments

Comments
 (0)