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 committed by GitHub
parent 0c427d0dee
commit 1f4bd67f7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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