/bin/hakchi is a helper script that can be used a couple different ways
This will read the variable that gets passed as the argument and output the value, e.g:
hakchi get cfg_myvariable
you can set a configuration variable by passing a variable name prefixed with
cfg_ followed by the value, e.g:
hakchi set cfg_myvariable "my value"
This will remove a configuration variable from the configuration file.
To use, pass the full variable name as an argument, e.g:
hakchi unset cfg_myvariable
You can run code in an environment similar to preinit one of two ways.
This will evaluate code sent either as the first argument or data from
hakchi eval 'echo $rootfs'
hakchi eval <<'EOT' echo $rootfs EOT
This will run the contents of a script in an environment similar to preinit, e.g:
hakchi source /tmp/myscript.sh