Support for changing channels and reinstalling

Bug #1192575 reported by Barry Warsaw on 2013-06-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu system image
Barry Warsaw

Bug Description

It should be possible to change the channel for the device. E.g. from daily to stable or vice versa.


* Store the current channel along with the current version so we know that if we change channels, we need a new full image
* Download the latest full image for the new channel
* Command line switch to do it
* Not supported by partial updates

Barry Warsaw (barry) on 2013-06-19
Changed in ubuntu-system-image:
status: New → Triaged
importance: Undecided → Low
tags: added: client
Barry Warsaw (barry) on 2013-07-16
Changed in ubuntu-system-image:
importance: Low → Wishlist
Loïc Minier (lool) wrote :

+1; this is in fact fairly important as we currently lack a way to get to the latest built image since it wasn't promoted to current (daily) and sits as pending (daily-proposed).

As part of this feature, I believe we should offer a flag to reset back from "developer mode" (system builder mode / writable image mode) to regular read-only mode; in both cases a "full" image needs to be applied while keeping userdata.

summary: - Support for changing channels
+ Support for changing channels and reinstalling
Barry Warsaw (barry) wrote :

A few additional thoughts:

* I'm not sure we can, or want to, expose this over dbus.

* Assuming that's true, the best way to support this seems to be to add a --force-channel option on system-image-cli which would override the channel coming from /etc/system-image/channel.ini. Then we do normal update resolution, forcing a full update as per LP: #1208909 (i.e. --force-channel would imply --force-full, caveat other comments in that latter bug).

* The channel switch would be permanent as long as the channel.ini file laid down by the newly installed image names the new channel, which it should.

As far as developer-mode reset, that will probably be handled by LP: #1192577. LP: #1207860 might also be related.

I'll take a look at the interactions of all these bugs and come up with a plan.

Barry Warsaw (barry) on 2013-08-26
Changed in ubuntu-system-image:
status: Triaged → Fix Committed
status: Fix Committed → Triaged
Barry Warsaw (barry) wrote :

I think this functionality will be supported by `system-image-cli -c <channel> --filter=full`, e.g.

root@ubuntu-phablet:/# system-image-cli --dry-run -c daily --filter=full
Upgrade path is 20130834
root@ubuntu-phablet:/# system-image-cli --dry-run -c daily-proposed --filter=full
Upgrade path is 20130835
root@ubuntu-phablet:/# system-image-cli --info

current build number: 20130831
device name: grouper
channel: daily-proposed

Changed in ubuntu-system-image:
milestone: none → 1.3
assignee: nobody → Barry Warsaw (barry)
status: Triaged → Fix Committed
Barry Warsaw (barry) on 2013-08-29
Changed in ubuntu-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers