Skip to content

Commit

Permalink
ota_core: integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Dec 19, 2024
1 parent 9291beb commit 466ea02
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/otaclient/ota_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 466ea02

Please sign in to comment.