We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per @andreeaflorescu's idea, instead of:
let mut kernel_cmdline = "reboot=k panic=1 pci=off nomodules 8250.nr_uarts=0 \ i8042.noaux i8042.nomux i8042.nopnp i8042.dumbkbd"; if blocks.has_root_block_device() && !blocks.has_partuuid_root() { kernel_cmdline.insert_str("root=/dev/vda")?; let flags = if blocks.has_read_only_root() { "ro" } else { "rw" }; kernel_cmdline.insert_str(flags)?; }
(source: firecracker, default cmdline)
we could build the kernel command line using a Rustacean builder:
let kernel_cmdline = Cmdline::default() .pci(None) .serial(None) .root_device(Some(Block { root: true, ro: true, partuuid: partuuid_config })) .extra_args("nomodules")?;
(Not its final form, merely demonstrative purposes).
This would make cmdline building simpler and more elegant.
cmdline
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Per @andreeaflorescu's idea, instead of:
(source: firecracker, default cmdline)
we could build the kernel command line using a Rustacean builder:
(Not its final form, merely demonstrative purposes).
This would make
cmdline
building simpler and more elegant.The text was updated successfully, but these errors were encountered: