add cli option to dump config settings

Bug #1380574 reported by James Hunt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu system image
Triaged
High
Barry Warsaw

Bug Description

The upgrader tool that works with the image previously downloaded by system-image-cli needs to know where to find said download files.

Currently, it could look in /etc/system-image/client.ini, but now that system-image is growing the ability to split its configuration across multiple files (bug 1373467), that strategy will not be sufficient.

The 2 most obvious approaches would seem to be:

1) Allow the upgrader tool to import a system-image python module that allows it to query these config settings.

2) Add an option to system-image-cli that allows the config settings to be dumped (à la 'system-image-cli --show-settings'). This would allow the upgrader to run something like the following to query the download location:

$ system-image-cli --get-config-option updater.cache_partition
/userdata/cache

Tags: client
Barry Warsaw (barry)
tags: added: client
Changed in ubuntu-system-image:
status: New → Triaged
milestone: none → 3.0
Barry Warsaw (barry)
Changed in ubuntu-system-image:
importance: Undecided → High
assignee: nobody → Barry Warsaw (barry)
Barry Warsaw (barry)
Changed in ubuntu-system-image:
milestone: 3.0 → none
importance: High → Low
Barry Warsaw (barry)
Changed in ubuntu-system-image:
milestone: none → 3.1
Revision history for this message
Barry Warsaw (barry) wrote :

mvo: I've committed a fix to the git repo for this. Let me know if it does the trick for snappy and if there's anything else we need to do to unfork the snappy version of si. I can release this fairly quickly if it does.

Changed in ubuntu-system-image:
importance: Low → High
status: Triaged → In Progress
status: In Progress → Triaged
Barry Warsaw (barry)
Changed in ubuntu-system-image:
milestone: 3.1 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.