I have patched my uml to support the above options. --config-fd continues to
work across reboots.
The config file is very simple. New lines starting with # are ignored.
Tokens are split on whitespace. Strings are quoted with ''.
There currently is no way to embed a ' inside a string. I'll fix this before
I post the patch.
When using ps on the host, you will not see the options from the config file.
In the virtual machine, you'll see all the options, but not the
Also, all __uml_setup() calls now can define a 'type' for the parameter. This
is based on the standard modutils parameter checking.
/* Used to verify parameters given to the module. The TYPE arg should
be one of the following strings:
B block device
C character device
de existing directory
dn possibly non-existing directory
fe existing file name
fn possibly non-existing file name
__uml_setup("--config-file=", "fe", read_config_file,
" Read config file, and parse it's contents as command line args\n\n"
__uml_setup("--config-fd=", "i", read_config_fd,
" Read config file from already open file descriptor, and parse it's\n"
" contents as command line args\n\n"