Installing mender-client on our official RPi image results in warning about /etc/mender/artifact_info

Description

From onboarding by :

1. during the installation of the mender-client package:
Configuration file '/etc/mender/artifact_info'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
==> Keeping old config file as default.
This is after initial copy-paste of commands from the first step

  • why is that file present?

  • it is a clean image, so why the warning?

The /etc/mender/artifact_info file is there because mender-convert installs it as part of installing Mender, which is correct. However, we should consider removing this file specifically for our RPi image, because unlike when a user invokes mender-convert, our image is distributed to a wide audience, and we cannot predict what should be in /etc/mender/artifact_info. It is better to let this file be populated by one of our two typical methods:

  1. Running onboarding and thereby installing Mender from scratch with a Debian package.

  2. Running mender setup.

After discussing on Backlog grooming meeting, we came up with the following acceptance criteria for fixing the bug:

  • Don't install mender client in our downloadable Raspberry Pi images.

  • Other images produced by mender-convert should still install it by default.

  • Adjust all documentation so that it's clear that the downloadable image requires installing the client first (primarily Downloads page I think, but should double check).

This ensures that the warning is not produced while installing the package during the onboarding, and it ensures that a broken client is not present in the downloadable image.

Affects versions

Environment

None

Checklist

Activity

Show:

Lluis CamposMay 6, 2021 at 2:43 PM

It required some fixes in the tests too.

PR: https://github.com/mendersoftware/mender-image-tests/pull/48

Ole Petter OrhagenMay 3, 2021 at 8:41 AM
Edited

Kristian AmlieApril 23, 2021 at 6:45 AM

Yes, this is pretty simple.

eystein.maloy.stenbergApril 22, 2021 at 10:30 PM

Thank you. Is the estimate still correct at 2?

Kristian AmlieApril 22, 2021 at 7:45 AM

You're right, , I even had this in my head, while typing. My fingers didn't type what my head was thinking!

Fixed

Details

Assignee

Reporter

Story Points

Priority

Days in progress

4

Fix versions

Sprint

Backlog

yes

Zendesk Support

Checklist

Created December 14, 2020 at 7:23 AM
Updated June 25, 2024 at 12:02 PM
Resolved May 6, 2021 at 3:14 PM