Use the correct size key
At this point, userdata_size has been converted to partition_size in build_image.ImagePropFromGlobalDict(). Change-Id: Ida6be1905ca3109c2660274a16359a9f3fbcd94d
This commit is contained in:
parent
3767d7ade8
commit
a7c8f72b40
|
@ -58,7 +58,7 @@ def AddUserdata(output_zip):
|
|||
image_props = build_image.ImagePropFromGlobalDict(OPTIONS.info_dict,
|
||||
"data")
|
||||
# If no userdata_size is provided, skip userdata.img.
|
||||
if not image_props.get("userdata_size"):
|
||||
if not image_props.get("partition_size"):
|
||||
return
|
||||
|
||||
print "creating userdata.img..."
|
||||
|
|
Loading…
Reference in New Issue