preinit: parse rootflags= in kernel command line

This commit is contained in:
Daniel Barlow 2024-01-07 23:52:01 +00:00
parent 6971d03520
commit 63f034e362
3 changed files with 77 additions and 51 deletions

7
pkgs/preinit/opts.h Normal file
View file

@ -0,0 +1,7 @@
struct root_opts {
char *device;
char *fstype;
char *mount_opts;
};
void parseopts(char * cmdline, struct root_opts *opts);