Snap factory reset ?

Gustavo Niemeyer gustavo at niemeyer.net
Tue Sep 27 18:09:18 UTC 2016


Please do not harshly reset the state this way. Zygmunt, I'd recommend
making that script unavailable.

The way snapd works changes all the time, and we're careful to do
migrations between the states.

If you reset a device out of band by just fiddling with data, bad things
will happen, and we may not be able to save your data.



On Tue, Sep 27, 2016 at 2:08 PM, Jamie Bennett <jamie.bennett at canonical.com>
wrote:

> On 27/09/16 at 05:58P, Oliver Grawert wrote:
> > hi,
> > Am Dienstag, den 27.09.2016, 20:33 +0500 schrieb Omer Akram:
> > > Hi!
> > >
> > > Is there an equivalent of `Factory reset` on Ubuntu Core ? Probably a
> > > command that would clean the writable part of the image.
> > >
> > nope, there is not and unlike with the system-image images you can not
> > "just wipe writable" to get back to a virgin state.
> >
> > it would have to be a very selective script that decides which bits can
> > stay and which bits can go since "writable" also holds the readonly
> > snaps and their assertion based initial setup in the all-snaps images.
> >
> > alternatively to such a script we would have to have a partition that
> > holds the original snaps and assertions so writable could be formatted
> > blank and "snap prepare-image" could be re-run on the empty partition
> > to put the initial configuration back in place (along with the original
> > snaps)
> >
> > i think the latter was the long term plan but i dont think anything has
> > happened in that area yet.
>
> There is this script [1] that zyga maintains which will completely reset
> the
> snappy state i.e. removes everything.
>
> > ciao
> >       oi
>
> [1] https://github.com/zyga/devtools
>
> --
> Devices mailing list
> Devices at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.snapcraft.io/
> mailman/listinfo/devices
>



-- 

gustavo @ http://niemeyer.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snapcraft.io/archives/devices/attachments/20160927/b50d4e44/attachment.html>


More information about the Devices mailing list