forked from Mirror/pmbootstrap
parse: deviceinfo: default flash_method (MR 2252)
Not sure if we should allow flash_method to be unset, but eh, simplify usage by adding the none fallback here. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
d8d55c3e52
commit
0a73bc298b
1 changed files with 4 additions and 1 deletions
|
@ -115,7 +115,7 @@ class Deviceinfo:
|
|||
append_dtb: Optional[str] = ""
|
||||
|
||||
# bootloader
|
||||
flash_method: Optional[str] = ""
|
||||
flash_method: str = ""
|
||||
boot_filesystem: Optional[str] = ""
|
||||
|
||||
# flash
|
||||
|
@ -265,3 +265,6 @@ class Deviceinfo:
|
|||
# if key not in Deviceinfo.__annotations__.keys():
|
||||
# logging.warning(f"deviceinfo: {key} is not a known attribute")
|
||||
setattr(self, key, value)
|
||||
|
||||
if not self.flash_method:
|
||||
self.flash_method = "none"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue