mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
The `root` and `rwroot` command-line parameters allow to specify a block device for which the right parameters are passed to the kernel to mount it as the root filesystem. This approach relies purely on the name of the parameter given and won't allow us to pass a "root" flag to a unified block device command-line option. Address this by adding a "root" member to `DiskOption`. On top of allowing us to specify the will to mount a particular device as root through a flag, it also clarifies the code a bit as we deal with one less unnamed tuple. BUG=b:218223240 TEST=Guest Linux boots as expected with the `--rwroot` option. Change-Id: I5d5eda1cc8b1fc2f08e798064fc0db3b17f000a3 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3970363 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |