mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 07:26:28 +00:00
Improve the compatibility (#810)
* Improve the compatibility * small style fix
This commit is contained in:
parent
0c427d0dee
commit
1f4bd67f7e
@ -13,12 +13,11 @@ if [ "${RAUC_SLOT_CLASS}" = "boot" ]; then
|
|||||||
mkdir -p "${BOOT_TMP}"
|
mkdir -p "${BOOT_TMP}"
|
||||||
mkdir -p "${BOOT_NEW}"
|
mkdir -p "${BOOT_NEW}"
|
||||||
|
|
||||||
mount "${RAUC_IMAGE_NAME}" "${BOOT_NEW}"
|
# Mount boot
|
||||||
|
|
||||||
# Old systems
|
|
||||||
if ! systemctl -q is-active mnt-boot.mount; then
|
if ! systemctl -q is-active mnt-boot.mount; then
|
||||||
mount "${RAUC_SLOT_DEVICE}" "${BOOT_MNT}"
|
systemctl start mnt-boot.mount
|
||||||
fi
|
fi
|
||||||
|
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}/"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user