|
FlatImage
A configurable Linux containerization system
|
Boot command storage in reserved space. More...
Functions | |
| Value< void > | write (fs::path const &path_file_binary, std::string_view const &json) |
| Writes the boot json string to the target binary. | |
| Value< std::string > | read (fs::path const &path_file_binary) |
| Reads the json string from the target binary. | |
Boot command storage in reserved space.
This namespace manages the default boot command stored as a JSON string in the binary's reserved space. The boot command specifies the default program and arguments to execute when the FlatImage is launched without explicit command-line arguments. This allows applications to be configured with specific startup commands or entry points.
|
inline |
Reads the json string from the target binary.
| path_file_binary | Target binary to write the json string |
Definition at line 64 of file boot.hpp.
|
inline |
Writes the boot json string to the target binary.
| path_file_binary | Target binary to write the json string |
| json | Json string to write to the target file as binary data |
Definition at line 44 of file boot.hpp.