linuxinstall/src/sandbox.c

28 lines
514 B
C

#include "utils.h"
#include "disk.h"
#include "config.h"
#include "container.h"
#include "image.h"
#include <stdio.h>
#include <dirent.h>
int main(int argc, char* argv[]) {
config_t* config;
result_t result = init_config(&config);
if (result != success())
return -1;
add_root_container(config, "test", 1024ULL);
char* image;
add_image(&image, config, "test");
printf("Image: %s\n", image);
add_backed_container(config, "test2", image);
add_image(&image, config, "test2");
free_config(config);
}