Skip to content

Commit

Permalink
boot.configs: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Nov 21, 2023
1 parent 404e6cf commit fc7e1ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions otaclient/app/boot_control/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ class _SeparatedBootParOTAStatusConfig(BaseModel):
grub platform shares /boot dir by sharing the same boot device.
"""

OTA_STATUS_DNAME: _std_ClassVar = "ota-status"

@cached_computed_field
def ACTIVE_BOOT_OTA_STATUS_DPATH(self) -> str:
"""The dynamically rooted location of ota-status dir.
Default: /boot/ota-status
"""
return os.path.join(cfg.BOOT_DPATH, "ota-status")
return os.path.join(cfg.BOOT_DPATH, self.OTA_STATUS_DNAME)

@cached_computed_field
def STANDBY_BOOT_OTA_STATUS_DPATH(self) -> str:
Expand Down Expand Up @@ -206,7 +208,7 @@ def STANDBY_EXTLINUX_FPATH(self) -> str:
def SEPARATE_BOOT_MOUNT_POINT(self) -> str:
"""The dynamically rooted location of standby slot's boot dev mount point.
Default: /mnt/otaclient/standby_root
Default: /mnt/otaclient/standby_boot
"""
return os.path.join(cfg.OTACLIENT_MOUNT_SPACE_DPATH, "standby_boot")

Expand Down

0 comments on commit fc7e1ad

Please sign in to comment.