forked from openkylin/platform_build
Do not read the block device when generating the care map
This remove the fstab dependency when building the OTA package for marlin/sailfish. Bug: 35811655 Test: OTA package builds successfully for sailfish. Change-Id: If223d11dddca396c47262042c576f9e7d0cb5b33
This commit is contained in:
parent
46c821d577
commit
7d051adc3b
|
@ -77,11 +77,10 @@ def GetCareMap(which, imgname):
|
||||||
"""Generate care_map of system (or vendor) partition"""
|
"""Generate care_map of system (or vendor) partition"""
|
||||||
|
|
||||||
assert which in ("system", "vendor")
|
assert which in ("system", "vendor")
|
||||||
_, blk_device = common.GetTypeAndDevice("/" + which, OPTIONS.info_dict)
|
|
||||||
|
|
||||||
simg = sparse_img.SparseImage(imgname)
|
simg = sparse_img.SparseImage(imgname)
|
||||||
care_map_list = []
|
care_map_list = []
|
||||||
care_map_list.append(blk_device)
|
care_map_list.append(which)
|
||||||
|
|
||||||
care_map_ranges = simg.care_map
|
care_map_ranges = simg.care_map
|
||||||
key = which + "_adjusted_partition_size"
|
key = which + "_adjusted_partition_size"
|
||||||
|
|
Loading…
Reference in New Issue