Merge pull request #1719 from mwhudson/reset-only-late-commands

fix using late-commands and reset-partition-only at the same time
This commit is contained in:
Michael Hudson-Doyle 2023-07-18 09:02:32 +12:00 committed by GitHub
commit 911c357d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -9,3 +9,5 @@ storage:
name: direct
reset-partition: yes
reset-partition-only: yes
late-commands:
- ['true']

View File

@ -129,6 +129,7 @@ class LateController(CmdListController):
def env(self):
env = super().env()
if self.app.base_model.target is not None:
env['TARGET_MOUNT_POINT'] = self.app.base_model.target
return env