From cd87324452f36bffb1833c9283d6021cc2fadf83 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 2 Mar 2022 11:44:56 +0100 Subject: [PATCH] Don't fail update even if files are missing (#1776) Don't fail the boot slot update even if files are missing in the current boot directory. --- buildroot-external/ota/rauc-hook | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildroot-external/ota/rauc-hook b/buildroot-external/ota/rauc-hook index a28077e80..68ae4018b 100755 --- a/buildroot-external/ota/rauc-hook +++ b/buildroot-external/ota/rauc-hook @@ -17,13 +17,13 @@ install_boot() { mount "${RAUC_IMAGE_NAME}" "${BOOT_NEW}" # Backup boot config - cp -f "${BOOT_MNT}"/*.txt "${BOOT_TMP}/" + cp -f "${BOOT_MNT}"/*.txt "${BOOT_TMP}/" || true # Update cp -rf "${BOOT_NEW}"/* "${BOOT_MNT}/" # Restore boot config - cp -f "${BOOT_TMP}"/*.txt "${BOOT_MNT}/" + cp -f "${BOOT_TMP}"/*.txt "${BOOT_MNT}/" || true umount "${BOOT_NEW}" rm -rf "${BOOT_TMP}" "${BOOT_NEW}"