diff options
author | Doug Zongker <dougz@android.com> | 2010-09-20 18:04:41 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2010-09-21 14:13:11 -0700 |
commit | 9ce0fb6e59415669074896cfa01e1f0cf97979b7 (patch) | |
tree | 5e46f0916c5f24ec4bb86dfae4d90513f419412b /tools/releasetools/img_from_target_files | |
parent | 56a3dba9d8b87f5c356e1934bf6f2cca843cf9c4 (diff) | |
download | build-9ce0fb6e59415669074896cfa01e1f0cf97979b7.zip build-9ce0fb6e59415669074896cfa01e1f0cf97979b7.tar.gz build-9ce0fb6e59415669074896cfa01e1f0cf97979b7.tar.bz2 |
support for per-partition fs_type
Include the recovery.fstab file in the recovery image. Remove the
global fs_type and partition_type values from the target-files
key/value dict, and parse the recovery.fstab file instead to find
types for each partition.
(Cherrypicked from gingerbread w/some edits to resolve conflicts.)
Change-Id: Ic3ed85ac5672d8fe20280dacf43d5b82053311bb
Diffstat (limited to 'tools/releasetools/img_from_target_files')
-rwxr-xr-x | tools/releasetools/img_from_target_files | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/releasetools/img_from_target_files b/tools/releasetools/img_from_target_files index c756086..1447b16 100755 --- a/tools/releasetools/img_from_target_files +++ b/tools/releasetools/img_from_target_files @@ -61,9 +61,10 @@ def AddUserdata(output_zip): img = tempfile.NamedTemporaryFile() build_command = [] - if OPTIONS.info_dict.get("fs_type", "").startswith("ext"): + if OPTIONS.info_dict["fstab"]["/data"].fs_type.startswith("ext"): build_command = ["mkuserimg.sh", - user_dir, img.name, OPTIONS.info_dict["fs_type"], "userdata"] + user_dir, img.name, + OPTIONS.info_dict["fstab"]["/data"].fs_type, "userdata"] if "userdata_size" in OPTIONS.info_dict: build_command.append(str(OPTIONS.info_dict["userdata_size"])) else: @@ -108,10 +109,10 @@ def AddSystem(output_zip): pass build_command = [] - if OPTIONS.info_dict.get("fs_type", "").startswith("ext"): + if OPTIONS.info_dict["fstab"]["/system"].fs_type.startswith("ext"): build_command = ["mkuserimg.sh", os.path.join(OPTIONS.input_tmp, "system"), img.name, - OPTIONS.info_dict["fs_type"], "system"] + OPTIONS.info_dict["fstab"]["/system"].fs_type, "system"] if "system_img" in OPTIONS.info_dict: build_command.append(str(OPTIONS.info_dict["system_size"])) else: |