Creates microramfs init array from folder.
microramfs is virtual filesystem used in GumOS https://github.com/Andrewerr/GumOS
It loads from static array. To get this initializtion array you need to have a folder with data you would like to store in microramfs (system folders like /dev
, /var/lock
, /etc
should be included as they not created on initialization)
gcc main.c -o init_microramfs
chmod +x init_microramfs
./init_microramfs <DIRNAME>
where DIRNAME
is path to folder where microramfs data is stored. This will convert all files and directories in DIRNAME
into microramfs initialization array.
On output you will get byte array and it's size.
There is a comma before closing curly bracket. Issue #1