<div dir="ltr">Please do not harshly reset the state this way. Zygmunt, I'd recommend making that script unavailable.<div><br></div><div>The way snapd works changes all the time, and we're careful to do migrations between the states.</div><div><br></div><div>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.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 27, 2016 at 2:08 PM, Jamie Bennett <span dir="ltr"><<a href="mailto:jamie.bennett@canonical.com" target="_blank">jamie.bennett@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 27/09/16 at 05:58P, Oliver Grawert wrote:<br>
> hi,<br>
> Am Dienstag, den 27.09.2016, 20:33 +0500 schrieb Omer Akram:<br>
> > Hi!<br>
> ><br>
> > Is there an equivalent of `Factory reset` on Ubuntu Core ? Probably a<br>
> > command that would clean the writable part of the image.<br>
> ><br>
> nope, there is not and unlike with the system-image images you can not<br>
> "just wipe writable" to get back to a virgin state.<br>
> <br>
> it would have to be a very selective script that decides which bits can<br>
> stay and which bits can go since "writable" also holds the readonly<br>
> snaps and their assertion based initial setup in the all-snaps images.<br>
><br>
> alternatively to such a script we would have to have a partition that<br>
> holds the original snaps and assertions so writable could be formatted<br>
> blank and "snap prepare-image" could be re-run on the empty partition<br>
> to put the initial configuration back in place (along with the original<br>
> snaps)<br>
><br>
> i think the latter was the long term plan but i dont think anything has<br>
> happened in that area yet.<br>
<br>
</span>There is this script [1] that zyga maintains which will completely reset the<br>
snappy state i.e. removes everything.<br>
<br>
> ciao<br>
> oi<br>
<br>
[1] <a href="https://github.com/zyga/devtools" rel="noreferrer" target="_blank">https://github.com/zyga/<wbr>devtools</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Devices mailing list<br>
<a href="mailto:Devices@lists.snapcraft.io">Devices@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.snapcraft.io/mailman/listinfo/devices" rel="noreferrer" target="_blank">https://lists.snapcraft.io/<wbr>mailman/listinfo/devices</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><br>gustavo @ <a href="http://niemeyer.net" target="_blank">http://niemeyer.net</a></div>
</div>