forked from DGNum/liminix
afb14d844b
In A/B schemas, it is possible to have multiple rootfs. Thus, it is necessary to let the B kernel preinitialize either the A rootfs or the B rootfs failing to mount the A rootfs. Ideally, we should also try to switch to the B rootfs if we cannot start up the init on the A rootfs, but that's a FUTUREWORK. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
8 lines
180 B
C
8 lines
180 B
C
struct root_opts {
|
|
char *device;
|
|
char *altdevice; /* For A/B schemas */
|
|
char *fstype;
|
|
char *mount_opts;
|
|
};
|
|
|
|
void parseopts(char * cmdline, struct root_opts *opts);
|