Skip to content

Commit

Permalink
fix(postinst): ensure /boot/firmware/overlays/ exists before copying …
Browse files Browse the repository at this point in the history
…DTBOs

This update modifies the post-installation script to check for the existence of the
/boot/firmware/overlays/ directory. If the directory does not exist, the script creates it
before attempting to copy Device Tree Blob Overlays (DTBOs), thereby preventing cp errors
during package installation.
  • Loading branch information
jolla committed Dec 26, 2024
1 parent 9a42866 commit 58648f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ if [ ! -d "$FIRMWARE_DIR" ]; then
exit 1
fi
# Ensure the overlays directory exists; create it if it doesn't
if [ ! -d "$FIRMWARE_DIR/overlays" ]; then
echo "Overlays directory $FIRMWARE_DIR/overlays does not exist. Creating it..."
mkdir -p "$FIRMWARE_DIR/overlays"
fi
# Copy kernel image
echo "Copying kernel image..."
cp -f "$PACKAGE_KERNEL_DIR/$KERNEL_IMAGE" "$FIRMWARE_DIR/"
Expand Down

0 comments on commit 58648f0

Please sign in to comment.