clean data as install

Bug #1260597 reported by Yuan-Chen Cheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Humpolec project
Fix Released
High
Yuan-Chen Cheng

Bug Description

the --bootstrap command will clean all existing data inside /data.

For dual boot, we need only delete file / directory that ubuntu touch use.

The following are file that ubuntu touch use (get on a flash install n4
with Trusty, devel channel, rev 58, version ubuntu: 20131211, version device: 20131203)
-------------------
-rw-r--r-- 1 root root 3 Dec 13 06:01 .last_ubuntu-build
-rw-rw-rw- 1 root root 0 Dec 13 06:00 .last_update
-rw------- 1 root root 2 Dec 6 01:56 .layout_version
-rw------- 1 root root 536870912 Dec 13 06:00 SWAP.img
drwxrwx--x 24 system system 4096 Dec 13 06:02 android-data
drwxr-xr-x 2 root root 4096 Dec 13 06:06 media
drwxr-xr-x 6 root root 4096 Dec 13 06:01 system-data
-rw------- 1 root root 2097152000 Dec 13 06:00 system.img
drwxr-xr-x 3 root root 4096 Dec 13 05:56 user-data

Tags: cqa-verified

Related branches

Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

it seems that media directory is also used by android. so I'll not remove media directory.

Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

.last_ubuntu-build => keep
.last_update => keep
.layout_version => remove as format system
SWAP.img => remove as format data
android-data => backup of android data. I can't find the code that is doing this backup from android_bootable_recovery (git://phablet.ubuntu.com/CyanogenMod/android_bootable_recovery)
media: shared with Android, keep
system-data: ubuntu directories (etc, lib, opt, var) remove as format data
system.img: remove as format system (existing code)
user-data: mapping to /home in ubuntu, remove as format data

Changed in humpolec:
status: In Progress → Fix Committed
Changed in humpolec:
milestone: none → m3-beta
Revision history for this message
Ethan Chang (ethan.chang) wrote :

Verified in ubuntuinstaller build 68.

tags: added: cqa-verified
Changed in humpolec:
status: Fix Committed → Fix Released
information type: Embargoed → Public
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.