Android-cuttlefish cvd tool
Functions
mkuserimg_mke2fs Namespace Reference

Functions

def RunCommand (cmd, env)
 
def FindProgram (prog_name)
 
def ParseArguments (argv)
 
def ConstructE2fsCommands (args)
 
def main (argv)
 

Function Documentation

◆ ConstructE2fsCommands()

def mkuserimg_mke2fs.ConstructE2fsCommands (   args)
Builds the mke2fs & e2fsdroid command based on the input arguments.

Args:
  args: The result of ArgumentParser after parsing the command line arguments.
Returns:
  A tuple of two lists that serve as the command for mke2fs and e2fsdroid.

◆ FindProgram()

def mkuserimg_mke2fs.FindProgram (   prog_name)
Finds the path to prog_name.

Args:
  prog_name: the program name to find.
Returns:
  path to the progName if found. The program is searched in the same directory
  where this script is located at. If not found, progName is returned.

◆ main()

def mkuserimg_mke2fs.main (   argv)

◆ ParseArguments()

def mkuserimg_mke2fs.ParseArguments (   argv)
Parses the input arguments to the program.

◆ RunCommand()

def mkuserimg_mke2fs.RunCommand (   cmd,
  env 
)
Runs the given command.

Args:
  cmd: the command represented as a list of strings.
  env: a dictionary of additional environment variables.
Returns:
  A tuple of the output and the exit code.