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
diff --git a/install/fuse_sdcard_install.cpp b/install/fuse_sdcard_install.cpp
index abf3bf3..195652c 100644
--- a/install/fuse_sdcard_install.cpp
+++ b/install/fuse_sdcard_install.cpp
@@ -131,7 +131,7 @@
// 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;
}