mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 23:16:31 +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}"
|
||||
|
||||
# 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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user