Added the cpptoml library (and license), and moved to using that for the initrd manifest. It's now possible to specify the `executable` flag for files, and the kernel correctly only launches new processes for the initrd files marked `executable`.
14 lines
266 B
C++
14 lines
266 B
C++
#include "entry.h"
|
|
|
|
entry::entry(const std::string &in, const std::string &out, bool executable) :
|
|
m_in(in),
|
|
m_out(out),
|
|
m_file(in, std::ios_base::binary),
|
|
m_exec(executable)
|
|
{
|
|
m_file.seekg(0, std::ios_base::end);
|
|
m_size = m_file.tellg();
|
|
m_file.seekg(0);
|
|
}
|
|
|