Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
mbtool: Mount /cache and /data by default to match recovery's behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Gunnerson committed Dec 2, 2016
1 parent 28121ca commit fa4dcd8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mbtool/installer.cpp
Expand Up @@ -1677,6 +1677,12 @@ Installer::ProceedState Installer::install_stage_mount_filesystems()
return ProceedState::Fail;
}

// Mount /cache and /data by default to match the recovery's behavior
const char *argv_mount_cache[] = { HELPER_TOOL, "mount", "/cache", nullptr };
const char *argv_mount_data[] = { HELPER_TOOL, "mount", "/data", nullptr };
run_command_chroot(_chroot.c_str(), argv_mount_cache);
run_command_chroot(_chroot.c_str(), argv_mount_data);

return on_mounted_filesystems();
}

Expand Down

0 comments on commit fa4dcd8

Please sign in to comment.