From 1f4bd67f7eb69c54b81bd25c4d39ef76f717a5e6 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 6 Aug 2020 20:49:42 +0200 Subject: [PATCH] Improve the compatibility (#810) * Improve the compatibility * small style fix --- buildroot-external/ota/rauc-hook | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/buildroot-external/ota/rauc-hook b/buildroot-external/ota/rauc-hook index 13783f6ae..f49847a60 100755 --- a/buildroot-external/ota/rauc-hook +++ b/buildroot-external/ota/rauc-hook @@ -13,12 +13,11 @@ if [ "${RAUC_SLOT_CLASS}" = "boot" ]; then mkdir -p "${BOOT_TMP}" mkdir -p "${BOOT_NEW}" - mount "${RAUC_IMAGE_NAME}" "${BOOT_NEW}" - - # Old systems + # Mount boot if ! systemctl -q is-active mnt-boot.mount; then - mount "${RAUC_SLOT_DEVICE}" "${BOOT_MNT}" + systemctl start mnt-boot.mount fi + mount "${RAUC_IMAGE_NAME}" "${BOOT_NEW}" # Backup boot config cp -f "${BOOT_MNT}"/*.txt "${BOOT_TMP}/"