Browse Source

fix(raspberrypi_config): Mender integration with userconf-service script

Changelog: Support Mender integration in `userconf-pi/userconf-service`
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-5954

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

6
configs/raspberrypi_config

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

Loading…
Cancel
Save