mender: Go through example state scripts and make sure they work with new C++ client

Description

Acceptance criteria:

Affects versions

None

Environment

None

Activity

Show:

Kristian Amlie November 26, 2024 at 8:49 AM

Thanks for the results.

I wonder if the dbus example should be removed. It is referring to interfaces which are specific to the customer from which we got this example, and I suspect it would produce exactly the same error with the Golang client.

The “retain” examples should be improved to detect either “grub-mender-grubenv-print” or “fw_printenv”. The change to support the “grubenv” tools predates the C++ client by quite some time, and would fail on the most recent version of both Golang and C++.

John Olav Lund November 25, 2024 at 1:25 PM

I tried the scripts on a virtual device with Mender 4.0.4

  • dbus-notification

  • retain-ssh-keys

  • retain-systemd-network

The scripts exited with an error, most likely because fw_printenv is not installed.

  • wait-for-network

Worked fine

Assignee

Reporter

Story Points

Priority

Days in progress

Backlog

Created January 8, 2024 at 10:34 AM
Updated November 26, 2024 at 8:49 AM