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

Commit 40095a6e authored by Alex Light's avatar Alex Light Committed by android-build-merger
Browse files

Add umount call to init to unmount a filesystem

am: 68ab20fe

Change-Id: I1166f88814193092f10dad8a2fa841028613e03e
parents 2110d0aa 68ab20fe
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -346,6 +346,11 @@ static int do_mkdir(const std::vector<std::string>& args) {
    return 0;
}

/* umount <path> */
static int do_umount(const std::vector<std::string>& args) {
  return umount(args[1].c_str());
}

static struct {
    const char *name;
    unsigned flag;
@@ -944,6 +949,7 @@ BuiltinFunctionMap::Map& BuiltinFunctionMap::map() const {
        {"mkdir",                   {1,     4,    do_mkdir}},
        {"mount_all",               {1,     kMax, do_mount_all}},
        {"mount",                   {3,     kMax, do_mount}},
        {"umount",                  {1,     1,    do_umount}},
        {"powerctl",                {1,     1,    do_powerctl}},
        {"restart",                 {1,     1,    do_restart}},
        {"restorecon",              {1,     kMax, do_restorecon}},
+3 −0
Original line number Diff line number Diff line
@@ -366,6 +366,9 @@ trigger <event>
   Trigger an event.  Used to queue an action from another
   action.

umount <path>
   Unmount the filesystem mounted at that path.

verity_load_state
   Internal implementation detail used to load dm-verity state.