Skip to content

Commit

Permalink
fix: copy boot files correctly for Raspberry Pi
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Jun 7, 2024
1 parent 22b9adf commit 7dc377c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/sh

BOOT_DIR="${RUGPI_BUNDLE_DIR}/roots/boot"
BOOT_DIR="${RUGPI_BUNDLE_DIR}/roots/boot/"

apk add linux-rpi

mkdir -p "${BOOT_DIR}"

cp -rp /boot/* "${BOOT_DIR}"
cp -rp "${RECIPE_DIR}/files/boot/" "${BOOT_DIR}"
cp -rp "${RECIPE_DIR}/files/boot/"* "${BOOT_DIR}"
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

BOOT_DIR="${RUGPI_BUNDLE_DIR}/roots/boot"
BOOT_DIR="${RUGPI_BUNDLE_DIR}/roots/boot/"

install -m 644 "${RECIPE_DIR}/files/raspberrypi.list" "/etc/apt/sources.list.d/"
sed -i "s/RELEASE/bookworm/g" "/etc/apt/sources.list.d/raspberrypi.list"
Expand All @@ -22,4 +22,4 @@ install -m 644 "${RECIPE_DIR}/files/cmdline.txt" "/boot/firmware/"
install -m 644 "${RECIPE_DIR}/files/config.txt" "/boot/firmware/"

mkdir -p "${BOOT_DIR}"
cp -rp /boot/firmware/ "${BOOT_DIR}"
cp -rp /boot/firmware/* "${BOOT_DIR}"

0 comments on commit 7dc377c

Please sign in to comment.