From 466ea021a543f69bb23afc244992dedb0035fcdb Mon Sep 17 00:00:00 2001 From: "bodong.yang" Date: Thu, 19 Dec 2024 08:00:14 +0000 Subject: [PATCH] ota_core: integration --- src/otaclient/ota_core.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/otaclient/ota_core.py b/src/otaclient/ota_core.py index c36759cad..78cb25f9b 100644 --- a/src/otaclient/ota_core.py +++ b/src/otaclient/ota_core.py @@ -489,9 +489,14 @@ def _execute_update(self): self._ota_tmp_image_meta_dir_on_standby.mkdir(exist_ok=True) # ------ in-update ------ # + # NOTE(20230907): standby slot creator doesn't need to + # treat the files under /boot specially, it is + # boot controller's responsibility to get the + # kernel/initrd.img from standby slot and prepare + # them to actual boot dir. standby_slot_creator = self._create_standby_cls( ota_metadata=otameta, - boot_dir=str(self._boot_controller.get_standby_boot_dir()), + boot_dir=str(Path(cfg.STANDBY_SLOT_MNT) / "boot"), active_slot_mount_point=cfg.ACTIVE_SLOT_MNT, standby_slot_mount_point=cfg.STANDBY_SLOT_MNT, status_report_queue=self._status_report_queue,