Browse Source

fix(raspberrypi_config): Mender integration with wpa_copy script

Changelog: Support Mender integration in
`raspberrypi-net-mods/wpa_copy` script included in recent Raspberry Pi
OS images by modifying the hard-coded mount point for the boot partition
from  `/boot` to `/uboot`.

Ticket: MEN-5955

Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
4.0.x
Lluis Campos 2 years ago
parent
commit
cec14e0ea7
  1. 6
      configs/raspberrypi_config

6
configs/raspberrypi_config

@ -110,6 +110,12 @@ function platform_modify() {
files_to_modify="$files_to_modify work/rootfs/usr/lib/userconf-pi/userconf-service" files_to_modify="$files_to_modify work/rootfs/usr/lib/userconf-pi/userconf-service"
fi fi
# MEN-5955: Integrate with raspberrypi-net-mods/wpa_copy
# See: https://github.com/RPi-Distro/raspberrypi-net-mods
if [ -f "work/rootfs/usr/lib/raspberrypi-net-mods/wpa_copy" ]; then
files_to_modify="$files_to_modify work/rootfs/usr/lib/raspberrypi-net-mods/wpa_copy"
fi
# Modify the files and log the changes # Modify the files and log the changes
for f in $files_to_modify; do for f in $files_to_modify; do
run_and_log_cmd "sed -i.bak 's|/boot|/uboot|g' ${f}" run_and_log_cmd "sed -i.bak 's|/boot|/uboot|g' ${f}"

Loading…
Cancel
Save