forked from DGNum/liminix
17355c3911
The way the parsing works is examining one character at a time. First, if we had `rootfstype=... root=...`, the parsing would jump and ignore `root=...`, which sucks. To fix this, we scan multiple times a copy of the cmdline. Now, we have a new problem: `root=... altroot=...` lead to opts.device being equal to the altroot as we are looking one char at a time, so we will arrive at a moment looking at `root=...` for `altroot=...`. To avoid this, we rename `altroot` in `rootalt`, cheap, I know. Signed-off-by: Raito Bezarius <masterancpp@gmail.com> |
||
---|---|---|
.. | ||
default.nix | ||
Makefile | ||
opts.h | ||
parseopts.c | ||
preinit.c | ||
shell.nix |