FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
boot.cpp File Reference

The main flatimage program. More...

#include <elf.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "../std/expected.hpp"
#include "../lib/linux.hpp"
#include "../lib/env.hpp"
#include "../lib/log.hpp"
#include "../parser/executor.hpp"
#include "../config.hpp"
#include "relocate.hpp"
Include dependency graph for boot.cpp:

Go to the source code of this file.

Functions

 __attribute__ ((section(".fim_reserved_offset"), used)) uint32_t FIM_RESERVED_OFFSET=0
 
Value< int > boot (int argc, char **argv)
 Boots the main flatimage program and the portal process.
 
void set_logger_level (int argc, char **argv)
 Set the logger level.
 
int main (int argc, char **argv)
 Entry point for the FlatImage program.
 

Variables

char ** environ
 

Detailed Description

The main flatimage program.

Author
Ruan Formigoni

Definition in file boot.cpp.

Function Documentation

◆ boot()

Value< int > boot ( int argc,
char ** argv )
nodiscard

Boots the main flatimage program and the portal process.

Parameters
argcArgument count
argvArgument vector
Returns
The return code of the process or an internal flatimage error '125'

Definition at line 40 of file boot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int argc,
char ** argv )

Entry point for the FlatImage program.

Parameters
argcArgument count
argvArgument vector
Returns
int Exit code (0 for success, non-zero for failure)

Definition at line 87 of file boot.cpp.

Here is the call graph for this function:

◆ set_logger_level()

void set_logger_level ( int argc,
char ** argv )

Set the logger level.

Parameters
argcArgument count
argvArgument vector

Definition at line 58 of file boot.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: