Skip to content

Commit

Permalink
Default to base board raspberrypiarmhf if not defined, for example in…
Browse files Browse the repository at this point in the history
… CustomPiOS v1
  • Loading branch information
guysoft committed Nov 5, 2024
1 parent cee120a commit c505f18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/custompios_core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ def get_image_config() -> Optional[Dict["str", Any]]:
base_board = os.environ.get("BASE_BOARD", None)
base_image_path = os.environ.get("BASE_IMAGE_PATH", None)

# Default to raspberrypiarmhf board in case of CustomPiOS v1
if base_board is None:
base_board = "raspberrypiarmhf"

if base_board is not None and base_board in images["images"]:
return images["images"][base_board]
return None

0 comments on commit c505f18

Please sign in to comment.