Browse Source
Merge pull request #320 from lluiscampos/MEN-4117-headless-configuration-rpi-service-files
MEN-4117: Support headless configuration on Raspberry Pi
2.4.x
Lluis Campos
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
0 deletions
-
configs/raspberrypi_config
-
docker-mender-convert
|
|
@ -91,6 +91,13 @@ function platform_modify() { |
|
|
|
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" |
|
|
|
|
|
|
|
# Raspberry Pi headless configuration expects boot partition to be mounted |
|
|
|
# at /boot, so replace these services with /uboot |
|
|
|
run_and_log_cmd "find work/rootfs/lib/ -type f -name *.service | xargs sed -i.bak 's|/boot/|/uboot/|g'" |
|
|
|
log_debug "Diff from modified service files:\n$(find work/rootfs/lib/ -type f -name '*.service' | xargs -I@ bash -c 'diff -u @.bak @')" |
|
|
|
run_and_log_cmd "find work/rootfs/lib/ -type f -name *.service.bak | xargs rm" |
|
|
|
log_info "Certain service files have been changed to align with our /uboot boot partition mount point. See convert.log for more information" |
|
|
|
|
|
|
|
run_and_log_cmd "sudo install -m 755 work/rpi/binaries/fw_printenv work/rootfs/sbin/fw_printenv" |
|
|
|
run_and_log_cmd "sudo ln -fs /sbin/fw_printenv work/rootfs/sbin/fw_setenv" |
|
|
|
|
|
|
|
|
|
@ -45,3 +45,5 @@ docker run \ |
|
|
|
$IMAGE_NAME "$@" |
|
|
|
|
|
|
|
[ $? -eq 0 ] && rmdir ${WORK_DIR} |
|
|
|
|
|
|
|
echo "Log file available at: logs/${LOG_FILE}" |
|
|
|