Post-install step in .deb package for interactive configuration

Description

Acceptance criteria

  • New post-install script is added to the the deb package that calls mender interactive cli

  • Mender service is started after configuration is successfully done

  • For interactive mode, client setup tool from MEN-2418 is invoked interactively

  • In non interactive mode, the post-install script passes default parameters to client setup

Acceptance criteria to fully comply with Debian policy. (decided not to, see comment below)

  • The script will just query the configuration form the user using debconf, and then feed it as parameters into our config tool.

    • In case of non-interactive mode, the queries to debconf will return the defaults but we will proceed the same way

Affects versions

None

Environment

None

Checklist

Activity

Show:

Lluis Campos November 11, 2019 at 10:57 AM

The actual work was done two sprints ago, but the merge of the full epic has been blocked until the GUI changes, which have been finalized today.

eystein.maloy.stenberg November 8, 2019 at 6:07 PM

Do we need to reorganize this one or is it simply lack of time? It has been on 4 different sprints now..

Lluis Campos October 24, 2019 at 1:04 PM
Edited

The acceptance criteria has been modified a bit during development of this task (back to the original design, really): the post install script is using mender setup command to do all the configuration.

The reason for the change is that such command got too involved, and duplicating all the wizard text with debconf is not maintainable.

Obs! We might need to do this at a later time to fully integrate with upstream Debian.

Lluis Campos April 9, 2019 at 10:59 AM

See comment here for doc and tutorial references

Fixed

Details

Assignee

Reporter

Story Points

Priority

Days in progress

7

Sprint

Backlog

yes

Zendesk Support

Checklist

Created March 22, 2019 at 1:07 PM
Updated March 9, 2020 at 2:28 PM
Resolved November 11, 2019 at 1:51 PM