Support for switching to system builder mode ... and back!

Bug #1192577 reported by Barry Warsaw
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu system image
Won't Fix
Wishlist
Unassigned

Bug Description

Some developers may want to forgo full image update mode and switch to apt-get (i.e. traditional) update mode. It's Ubuntu after all! The two modes of updating are mutually exclusive though. Once you switch to apt-get mode, you cannot switch back without reflashing the device (probably).

What do we need to grab in order to switch to apt-get updates?

How do we know if we're in apt-get mode? (dpkg is present?)

Tags: client
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: New → Triaged
importance: Undecided → Low
tags: added: client
Barry Warsaw (barry)
Changed in ubuntu-system-image:
importance: Low → Wishlist
Revision history for this message
Loïc Minier (lool) wrote :

Would be good to undo the bindmounts by copying back the userdata, and redo them when switching again to r/o.

summary: - Support for switching to apt-get mode
+ Support for switching to system builder mode
summary: - Support for switching to system builder mode
+ Support for switching to system builder mode ... and back!
Revision history for this message
Michał Sawicz (saviq) wrote :

I'm just testing:

$ system-image-cli -f full -b 0

Which, IIUC, should do most of what we need - even when you switched to a writable image - it will just replace the rootfs with the new image, leaving userdata alone?

Revision history for this message
Michał Sawicz (saviq) wrote :

Switching *to* dev mode could potentially copy the system.img file on-device, so that reverting to would not require networking, and you could rinse'n'repeat more often.

Revision history for this message
Michał Sawicz (saviq) wrote :

I've been successfully using `system-image-cli --build 0` (--filter full is spurious in that scenario) to get the devices to a pristine rootfs for some time now, so this seems to be a sane approach.

Revision history for this message
Barry Warsaw (barry) wrote :

Things have changed significantly since this bug was opened, but it's now no longer relevant for system-image to manage switching between "apt-get" mode and image mode. Also, using apt-get at all is discouraged.

Changed in ubuntu-system-image:
status: Triaged → Won't Fix
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.