mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 15:36:29 +00:00
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.
This commit is contained in:
parent
de21729578
commit
cd87324452
@ -17,13 +17,13 @@ install_boot() {
|
|||||||
mount "${RAUC_IMAGE_NAME}" "${BOOT_NEW}"
|
mount "${RAUC_IMAGE_NAME}" "${BOOT_NEW}"
|
||||||
|
|
||||||
# Backup boot config
|
# Backup boot config
|
||||||
cp -f "${BOOT_MNT}"/*.txt "${BOOT_TMP}/"
|
cp -f "${BOOT_MNT}"/*.txt "${BOOT_TMP}/" || true
|
||||||
|
|
||||||
# Update
|
# Update
|
||||||
cp -rf "${BOOT_NEW}"/* "${BOOT_MNT}/"
|
cp -rf "${BOOT_NEW}"/* "${BOOT_MNT}/"
|
||||||
|
|
||||||
# Restore boot config
|
# Restore boot config
|
||||||
cp -f "${BOOT_TMP}"/*.txt "${BOOT_MNT}/"
|
cp -f "${BOOT_TMP}"/*.txt "${BOOT_MNT}/" || true
|
||||||
|
|
||||||
umount "${BOOT_NEW}"
|
umount "${BOOT_NEW}"
|
||||||
rm -rf "${BOOT_TMP}" "${BOOT_NEW}"
|
rm -rf "${BOOT_TMP}" "${BOOT_NEW}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user