Need support for factory reset (needed by settings)

Bug #1207860 reported by Sebastien Bacher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu system image
Fix Released
High
Barry Warsaw

Bug Description

The system settings design has an UI that includes a factory reset option:
https://wiki.ubuntu.com/SystemSettings#A.2BIBw-Reset_Phone.2BIB0-

It would be nice if the system image service could provide that option

(stgraber said "right, factory reset is basically a two lines file to dump in /cache/recovery/ubuntu_command, then call reboot -f recovery")

Tags: client

Related branches

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

<stgraber> barry: actually, just one: format data

Revision history for this message
Stéphane Graber (stgraber) wrote :

Writing "format data" to /cache/recovery/ubuntu_command and rebooting to recovery will do the trick. The upgrader will wipe the data partition and reboot without any user data.

Revision history for this message
Matt Fischer (mfisch) wrote :

The implementation here needs to leave the OEM customization area alone. We may have a separate dconf database hosted there.

summary: - having a factory reset option would be nice
+ Need support for factory reset (needed by settings)
Revision history for this message
Barry Warsaw (barry) wrote :

Stephane, can you verify whether 'format data' will leave the OEM area alone as Matt requests?

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

I can easily add this to s-i 2.3, but I'd like confirmation on whether `format data` will leave the OEM area alone.

Changed in ubuntu-system-image:
importance: Wishlist → High
assignee: nobody → Barry Warsaw (barry)
milestone: none → 2.3
Revision history for this message
Stéphane Graber (stgraber) wrote :

OEM customization is in /custom which is on the read-only image and so isn't flushed when wiping the userdata partition.

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

Thanks stgraber. Okay, so I think it would be easy to add a command line switch and a *new* D-Bus API for factory reset. The latter shouldn't have any backward compatibility constraints, and I'll document the API on the wiki, which will probably just be:

FactoryReset()

Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: Triaged → In Progress
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: In Progress → Fix Committed
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: Fix Committed → Fix Released
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.