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