~doanac/utah/upgrade-from-host

« back to all changes in this revision

Viewing changes to examples/run_utah_phablet.py

  • Committer: Javier Collado
  • Date: 2013-07-22 17:52:09 UTC
  • mfrom: (971.1.1 utah)
  • Revision ID: javier.collado@canonical.com-20130722175209-wl6ntxv22cex4bok
Tags: 0.14.3
Clean up all data by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        cmd.extend(['-d', args.device])
59
59
    if not args.current:
60
60
        cmd.append('--pending')
 
61
    if not args.preserve:
 
62
        cmd.append('--wipe')
61
63
 
62
64
    print('= flashing device...')
63
65
    subprocess.check_call(cmd)
262
264
                        help='Alternative download uri')
263
265
    parser.add_argument('--current', action='store_true',
264
266
                        help='Use the "current" image rather than "pending".')
 
267
    parser.add_argument('--preserve', action='store_true',
 
268
                        help='Preserve the systems user data when flashing.')
265
269
    parser.add_argument('--skip-network', action='store_true',
266
270
                        help='Skip setting up wifi settings on device.')
267
271
    parser.add_argument('-n', '--network-file',