From 9b5ab3542c0ff825f82797d2906b9322aedb8eb2 Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Wed, 3 Sep 2025 17:50:17 +0900 Subject: [PATCH] postinst: Make sure Flatcar extension folder exists When a Flatcar extension file is created on an old node that doesn't yet support them but the update will, and already downloads it, then we also need to create the folder because it's not existing yet. Fixes https://github.com/flatcar/Flatcar/issues/1788 Signed-off-by: Kai Lueke --- flatcar-postinst | 1 + 1 file changed, 1 insertion(+) diff --git a/flatcar-postinst b/flatcar-postinst index d22ad9d..90d9b9e 100644 --- a/flatcar-postinst +++ b/flatcar-postinst @@ -229,6 +229,7 @@ for NAME in $(grep -h -o '^[^#]*' /etc/flatcar/enabled-sysext.conf /usr/share/fl echo "Failed to download required OEM update payload" >&2 exit 1 fi + mkdir -p /etc/flatcar/sysext mv "/var/lib/update_engine/flatcar-${NAME}.raw" "/etc/flatcar/sysext/flatcar-${NAME}-${NEXT_VERSION}.raw" done