← Back to team overview

ubuntu-phone team mailing list archive

Wiping phone after testing

 

Hello all,

with autopkgtest now being able to run click tests on the phone [1]
I'd like to fine-tune the ADB setup script to require less manual
action.

One outstanding issue is that I'd like to implement the ssh setup
script's "revert" action. This can be used to reset the phone if there
is something more efficient than re-flashing it from scratch.

I've heard that we have some magic with using
/cache/recovery/ubuntu_commands. There's nothing in the wiki, just
some allusions that it exists [2].

So can I write something in there
which uninstalls all locally installed clicks, resets $HOME and config
changes? I. e. essentially all writable parts, except for the network
configuration? It's fine (and would even make things easier) if that
would also skip the intro screen, but we can programmatically skip
that too if necessary. If it wipes everything including networking,
the setup script could also certainly save the network config, wipe,
and restore the network config.

Thanks for any insights!

Martin

[1] http://www.piware.de/2014/07/deb-click-schroot-lxc-qemu-phone-cloud-one-autopkgtest-to-rule-them-all/
[2] https://wiki.ubuntu.com/Touch/Customization/Installation
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

Attachment: signature.asc
Description: Digital signature


Follow ups