linuxinstall/src/sandbox.c

28 lines
514 B
C
Raw Normal View History

2024-02-18 18:09:53 +01:00
#include "utils.h"
#include "disk.h"
#include "config.h"
2024-02-19 18:18:18 +01:00
#include "container.h"
2024-02-29 10:58:47 +01:00
#include "image.h"
#include <stdio.h>
2024-02-29 09:50:28 +01:00
#include <dirent.h>
int main(int argc, char* argv[]) {
config_t* config;
result_t result = init_config(&config);
2024-02-29 09:50:28 +01:00
if (result != success())
return -1;
2024-02-29 10:58:47 +01:00
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);
}