Skip to content

Commit

Permalink
Add recovery.wipe file.
Browse files Browse the repository at this point in the history
Bug: 36427762
Test: lunch muskie-userdebug && make bootimage. Check
      $OUT/recovery/root/etc/recovery.wipe exists.
Change-Id: Id86c53d62d2b5a293f22b37fef3c64caa82f15f1
  • Loading branch information
Tao Bao committed Mar 21, 2017
1 parent ca7f651 commit 1ff004a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ TARGET_RECOVERY_FSTAB := device/google/wahoo/fstab.hardware
BOARD_USES_RECOVERY_AS_BOOT := true
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true

# Partitions (listed in the file) to be wiped under recovery.
TARGET_RECOVERY_WIPE := device/google/wahoo/recovery.wipe

ENABLE_CPUSETS := true

TARGET_COPY_OUT_VENDOR := vendor
Expand Down
10 changes: 10 additions & 0 deletions recovery.wipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# All the partitions to be wiped (in order) under recovery.
/dev/block/bootdevice/by-name/system_a
/dev/block/bootdevice/by-name/system_b
/dev/block/bootdevice/by-name/vendor_a
/dev/block/bootdevice/by-name/vendor_b
/dev/block/bootdevice/by-name/userdata
# Wipe the boot partitions last so that all partitions will be wiped
# correctly even if the wiping process gets interrupted by a force boot.
/dev/block/bootdevice/by-name/boot_a
/dev/block/bootdevice/by-name/boot_b

0 comments on commit 1ff004a

Please sign in to comment.