Support headless configuration on Raspberry Pi

Description

The goal of the headless configuration setup with RPI is to make it easy for users to enable things like ssh and set wifi credentials easily. It uses files created in the FAT partition to trigger enablement of certain features. Since it uses the FAT partition it is easy to access this on any system.

Currently, we mount the bootloader FAT partition in /uboot, while Raspberry PI OS related utilities expect it at /boot, hence the following services do not work as intended:

  • lib/systemd/system/apply_noobs_os_config.service

  • lib/systemd/system/raspberrypi-net-mods.service

  • lib/systemd/system/sshswitch.service

Acceptance criteria:

  • the above scripts are modified to expect the boot partition at /uboot instead of /boot

  • mender-docs are updated to reflect that headless configuration is supported

Affects versions

None

Environment

None

Checklist

Activity

Show:

Lluis CamposMarch 5, 2021 at 2:29 PM

Lluis CamposMarch 5, 2021 at 12:35 PM

While reviewing the above PR we realized that modifying the boot partition mount point brings other problems, mainly hiding rootfs /boot directory and therefore not being able to update the kernel down the road.

We have decided to go back to the original fix: to modify upstream scripts.

Acceptance criteria updated accordingly in description and new PR launched at https://github.com/mendersoftware/mender-convert/pull/320

Lluis CamposMarch 4, 2021 at 3:28 PM

Lluis CamposMarch 4, 2021 at 2:55 PM

While working on this, I decided to call the configuration variable MENDER_BOOT_PART_MOUNT_LOCATION to align it to the yocto one

Lluis CamposDecember 3, 2020 at 1:05 PM

I have rewritten the acceptance criteria, could you please review it?

We originally said about just changing the mount point, but I suggest we keep it by default /uboot for U-Boot integrations, and let Raspberry Pi to be the exception.

Fixed

Details

Assignee

Reporter

Labels

Story Points

Priority

Days in progress

2

Sprint

Backlog

yes

Zendesk Support

Checklist

Created November 4, 2020 at 5:44 PM
Updated March 8, 2021 at 10:58 AM
Resolved March 8, 2021 at 10:58 AM