1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-02-15 07:29:08 +00:00

Improve the compatibility (#810)

* Improve the compatibility

* small style fix
This commit is contained in:
Pascal Vizeli
2020-08-06 20:49:42 +02:00
parent 2daa519c25
commit 2acaa52cb4

View File

@@ -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}/"