fix using late-commands and reset-partition-only at the same time
This commit is contained in:
parent
f8bf1105bf
commit
b23d553220
|
@ -9,3 +9,5 @@ storage:
|
||||||
name: direct
|
name: direct
|
||||||
reset-partition: yes
|
reset-partition: yes
|
||||||
reset-partition-only: yes
|
reset-partition-only: yes
|
||||||
|
late-commands:
|
||||||
|
- ['true']
|
||||||
|
|
|
@ -129,7 +129,8 @@ class LateController(CmdListController):
|
||||||
|
|
||||||
def env(self):
|
def env(self):
|
||||||
env = super().env()
|
env = super().env()
|
||||||
env['TARGET_MOUNT_POINT'] = self.app.base_model.target
|
if self.app.base_model.target is not None:
|
||||||
|
env['TARGET_MOUNT_POINT'] = self.app.base_model.target
|
||||||
return env
|
return env
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
|
|
Loading…
Reference in New Issue