Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
chore: switch to dynamic architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Jan 8, 2024
1 parent 929a30d commit a63c081
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
1 change: 0 additions & 1 deletion layers/base.toml

This file was deleted.

9 changes: 8 additions & 1 deletion layers/customized.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
parent = "base"
# Use Raspberry Pi OS Bookworm as a basis for the custom image.
#
# Note that you can also declare your own base layer(s). For examples, see:
# https://github.com/silitics/rugpi/tree/main/repositories/core/layers
parent = "core/raspios-bookworm"

# Include recipes for the custom image.
recipes = [
"core/raspberrypi", # Prepares the Raspberry Pi base image for usage with Rugpi.
"core/set-hostname", # Sets a static hostname (see parameters below).
"core/persist-root-home", # Persists the home directory of the root user.
"core/ssh", # Configures SSH.
"rugpi-extra/zsh", # Installs ZSH.
"rugpi-extra/nginx", # Installs Nginx.
"hello-world", # Enable the `hello-world` recipe installing the static webpage.
]

Expand Down
3 changes: 3 additions & 0 deletions layers/delta.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This is an example for a delta layer which just installs the webpage.
parent = "customized"
recipes = ["hello-world"]
2 changes: 1 addition & 1 deletion recipes/hello-world/recipe.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dependencies = ["rugpi-extra/nginx"]
description = "install static webpage"
17 changes: 14 additions & 3 deletions rugpi-bakery.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
[repositories]
rugpi-extra = { git = "https://github.com/silitics/rugpi-extra.git" }

[images.rpi4]
[images.tryboot]
layer = "customized"

# A specific image including the firmware update for Raspberry Pi 4 and CM4.
[images.pi4]
layer = "customized"
# Include the firmware update for Raspberry Pi 4 and CM4.
include_firmware = "pi4"

[images.tryboot]
# An image using the U-Boot boot flow for Raspberry Pi 3 and Zero 2.
[images.u-boot]
layer = "customized"
boot_flow = "u-boot"

# An `armhf` image for older Raspberry Pi's using the U-Boot boot flow.
[images.u-boot-armhf]
layer = "customized"
architecture = "armhf"
boot_flow = "u-boot"

0 comments on commit a63c081

Please sign in to comment.