[klibc] kinit: Parse mount command options properly.

Mount options sent via "kinit_mount=" command line args, or
an embedded fstab file, were not parsed properly to turn
option strings into mount flags where possible.

Stole and modified code from

        usr/utils/mount_opts.c

to handle this.

Tested: Tested using a variety of command line and fstab
mounts and options.

Signed-off-by: Curt Wohlgemuth <curtw@google.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
1 file changed