Browse Source

Merge pull request #343 from lluiscampos/MEN-4658-symlink-all-uboot

MEN-4658: Support Raspberry Pi apps expecting files at /boot
2.5.x
Lluis Campos 4 years ago
committed by GitHub
parent
commit
35d3380f35
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      configs/raspberrypi_config

9
configs/raspberrypi_config

@ -86,10 +86,11 @@ function platform_modify() {
run_and_log_cmd "sudo cp work/rpi/binaries/uboot-git-log.txt work/boot"
# Raspberry Pi applications expect to find this on the device and in some
# cases parse the options to determine the functionality.
run_and_log_cmd "sudo ln -fs /uboot/config.txt work/rootfs/boot/config.txt"
run_and_log_cmd "sudo ln -fs /uboot/overlays work/rootfs/boot/overlays"
run_and_log_cmd "sudo ln -fs /uboot/$CMDLINE work/rootfs/boot/$CMDLINE"
# cases parse the options to determine the functionality. Create symlinks
# to all files
for f in $(ls -1 work/boot); do
run_and_log_cmd "sudo ln -fs /uboot/${f} work/rootfs/boot/${f}"
done
# Raspberry Pi headless configuration expects boot partition to be mounted
# at /boot, so replace these services with /uboot

Loading…
Cancel
Save