@@ -7,35 +7,35 @@ use std::fmt::{Display, Formatter, Result};
7
7
/// - `reboot=k` shut down the guest on reboot, instead of well... rebooting;
8
8
/// - `panic=1` on panic, reboot after 1 second;
9
9
/// - `pci=off` do not scan for PCI devices (save boot time);
10
- /// - `nomodules ` disable loadable kernel module support;
10
+ /// - `nomodule ` disable loadable kernel module support;
11
11
/// - `8250.nr_uarts=0` disable 8250 serial interface;
12
12
/// - `i8042.noaux` do not probe the i8042 controller for an attached mouse (save boot time);
13
13
/// - `i8042.nomux` do not probe i8042 for a multiplexing controller (save boot time);
14
14
/// - `i8042.nopnp` do not use ACPIPnP to discover KBD/AUX controllers (save boot time);
15
15
/// - `i8042.dumbkbd` do not attempt to control kbd state via the i8042 (save boot time).
16
- //pub const DEFAULT_KERNEL_CMDLINE: &str = "reboot=k panic=1 pci=off nomodules 8250.nr_uarts=0 \
16
+ //pub const DEFAULT_KERNEL_CMDLINE: &str = "reboot=k panic=1 pci=off nomodule 8250.nr_uarts=0 \
17
17
// i8042.noaux i8042.nomux i8042.nopnp i8042.dumbkbd";
18
18
19
19
#[ cfg( all( target_os = "linux" , not( feature = "tee" ) ) ) ]
20
- pub const DEFAULT_KERNEL_CMDLINE : & str = "reboot=k panic=-1 panic_print=0 nomodules console=hvc0 \
20
+ pub const DEFAULT_KERNEL_CMDLINE : & str = "reboot=k panic=-1 panic_print=0 nomodule console=hvc0 \
21
21
rootfstype=virtiofs rw quiet no-kvmapf";
22
22
23
23
#[ cfg( feature = "amd-sev" ) ]
24
- pub const DEFAULT_KERNEL_CMDLINE : & str = "reboot=k panic=-1 panic_print=0 nomodules console=hvc0 \
24
+ pub const DEFAULT_KERNEL_CMDLINE : & str = "reboot=k panic=-1 panic_print=0 nomodule console=hvc0 \
25
25
root=/dev/vda rw quiet no-kvmapf";
26
26
#[ cfg( target_os = "macos" ) ]
27
- pub const DEFAULT_KERNEL_CMDLINE : & str = "reboot=k panic=-1 panic_print=0 nomodules console=hvc0 \
27
+ pub const DEFAULT_KERNEL_CMDLINE : & str = "reboot=k panic=-1 panic_print=0 nomodule console=hvc0 \
28
28
rootfstype=virtiofs rw quiet no-kvmapf";
29
29
30
- //pub const DEFAULT_KERNEL_CMDLINE: &str = "reboot=k panic=1 pci=off nomodules earlyprintk=ttyS0 \
30
+ //pub const DEFAULT_KERNEL_CMDLINE: &str = "reboot=k panic=1 pci=off nomodule earlyprintk=ttyS0 \
31
31
// console=ttyS0";
32
32
33
33
/// Strongly typed data structure used to configure the boot source of the
34
34
/// microvm.
35
35
#[ derive( Debug , Default , Eq , PartialEq ) ]
36
36
pub struct BootSourceConfig {
37
37
/// The boot arguments to pass to the kernel. If this field is uninitialized, the default
38
- /// kernel command line is used: `reboot=k panic=1 pci=off nomodules 8250.nr_uarts=0`.
38
+ /// kernel command line is used: `reboot=k panic=1 pci=off nomodule 8250.nr_uarts=0`.
39
39
pub kernel_cmdline_prolog : Option < String > ,
40
40
pub kernel_cmdline_epilog : Option < String > ,
41
41
}
0 commit comments