Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7b68580 authored by Yifan Hong's avatar Yifan Hong
Browse files

Fix ensure_path_mounted_at for fsck_unshare_blocks

Test: pass
Bug: 118634720
Change-Id: Icb2540892bd35659462f56c3883a39759f29eeab
parent cbfeb7f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -121,7 +121,7 @@ bool do_fsck_unshare_blocks() {


  // Temporarily mount system so we can copy e2fsck_static.
  // Temporarily mount system so we can copy e2fsck_static.
  std::string system_root = get_system_root();
  std::string system_root = get_system_root();
  bool mounted = ensure_path_mounted_at(system_root.c_str(), "/mnt/system");
  bool mounted = ensure_path_mounted_at(system_root.c_str(), "/mnt/system") != -1;
  partitions.push_back(system_root);
  partitions.push_back(system_root);


  if (!mounted) {
  if (!mounted) {