Merge "TransformFstabForDsu() skips handling special devices"
This commit is contained in:
commit
5ab4400db1
1 changed files with 6 additions and 2 deletions
|
@ -591,7 +591,7 @@ void TransformFstabForDsu(Fstab* fstab, const std::string& dsu_slot,
|
|||
FstabEntry userdata;
|
||||
if (FstabEntry* entry = GetEntryForMountPoint(fstab, "/data")) {
|
||||
userdata = *entry;
|
||||
userdata.blk_device = "userdata_gsi";
|
||||
userdata.blk_device = android::gsi::kDsuUserdata;
|
||||
userdata.fs_mgr_flags.logical = true;
|
||||
userdata.fs_mgr_flags.formattable = true;
|
||||
if (!userdata.metadata_key_dir.empty()) {
|
||||
|
@ -611,7 +611,11 @@ void TransformFstabForDsu(Fstab* fstab, const std::string& dsu_slot,
|
|||
continue;
|
||||
}
|
||||
// userdata has been handled
|
||||
if (StartsWith(partition, "user")) {
|
||||
if (partition == android::gsi::kDsuUserdata) {
|
||||
continue;
|
||||
}
|
||||
// scratch is handled by fs_mgr_overlayfs
|
||||
if (partition == android::gsi::kDsuScratch) {
|
||||
continue;
|
||||
}
|
||||
// dsu_partition_name = corresponding_partition_name + kDsuPostfix
|
||||
|
|
Loading…
Reference in a new issue