Skip to content

Commit

Permalink
Bug 1213538 - Ensure system partition is mounted before device compat…
Browse files Browse the repository at this point in the history
…ibility checks r=gsvelto
  • Loading branch information
Alexandre Lissy committed Oct 10, 2015
1 parent 9d86028 commit 30b6d7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/update-tools/update_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1258,13 +1258,19 @@ def deprecated_DeleteFilesRecursive(objects):
cmd = ('set_progress(0.25);')
self.generator.script.append(self.generator._WordWrap(cmd))

# We need /system for reading props from build.prop
self.AssertMountIfNeeded("/system")

# We do not want to check the device/model when we are checking fingerprints.
if self.fota_check_device_name and not self.fota_check_fingerprints:
self.AssertDeviceOrModel(self.fota_check_device_name)
else:
if self.fota_check_fingerprints:
self.AssertFingerprints()

# We do not need that anymore for now, let's unmount
self.Umount("/system")

# This method is responsible for checking the partitions we want to format
self.FormatAll()

Expand Down

0 comments on commit 30b6d7b

Please sign in to comment.