aboutsummaryrefslogtreecommitdiffstats
path: root/install/fuse_sdcard_install.cpp
diff options
context:
space:
mode:
authorAlessandro Astone <ales.astone@gmail.com>2020-03-05 17:58:38 +0100
committerLuca Stefani <luca.stefani.ge1@gmail.com>2020-03-09 17:19:23 +0100
commit78b889c7651a1bb3ad0767a711912412495d5c4e (patch)
tree9ba523eeb62cf83a9f5f2a233f156f2455dac72b /install/fuse_sdcard_install.cpp
parent2effe7761304a6762042bbedfff7235d0020500c (diff)
downloadandroid_bootable_recovery-78b889c7651a1bb3ad0767a711912412495d5c4e.tar.gz
android_bootable_recovery-78b889c7651a1bb3ad0767a711912412495d5c4e.tar.bz2
android_bootable_recovery-78b889c7651a1bb3ad0767a711912412495d5c4e.zip
recovery: fixup `sdcard is data/media/0`
* In commit 88f11b937499a5d5b308a8098d671fd95e32dc00 I made /data not mandatory to unmount when installing because it failed to unmount when sideloading from sdcard. The correct way however was to perform a MNT_DETACH, which was already in place but I forgot to change from "/sdcard" to "/data" Change-Id: I633670c6dd6e9529f212ce5f62a4cc0322fb30f8
Diffstat (limited to 'install/fuse_sdcard_install.cpp')
-rw-r--r--install/fuse_sdcard_install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/fuse_sdcard_install.cpp b/install/fuse_sdcard_install.cpp
index abf3bf37..195652ce 100644
--- a/install/fuse_sdcard_install.cpp
+++ b/install/fuse_sdcard_install.cpp
@@ -131,7 +131,7 @@ static bool StartSdcardFuse(const std::string& path) {
// The installation process expects to find the sdcard unmounted. Unmount it with MNT_DETACH so
// that our open file continues to work but new references see it as unmounted.
- umount2("/sdcard", MNT_DETACH);
+ umount2("/data", MNT_DETACH);
return run_fuse_sideload(std::move(file_data_reader)) == 0;
}