Struct libcoreinst::cmdline::InstallConfig
source · [−]pub struct InstallConfig {Show 23 fields
pub config_file: Vec<String>,
pub stream: Option<String>,
pub image_url: Option<Url>,
pub image_file: Option<String>,
pub ignition_file: Option<String>,
pub ignition_url: Option<Url>,
pub ignition_hash: Option<IgnitionHash>,
pub architecture: DefaultedString<Architecture>,
pub platform: Option<String>,
pub firstboot_args: Option<String>,
pub append_karg: Vec<String>,
pub delete_karg: Vec<String>,
pub copy_network: bool,
pub network_dir: DefaultedString<NetworkDir>,
pub save_partlabel: Vec<String>,
pub save_partindex: Vec<String>,
pub offline: bool,
pub insecure: bool,
pub insecure_ignition: bool,
pub stream_base_url: Option<Url>,
pub preserve_on_error: bool,
pub fetch_retries: FetchRetries,
pub dest_device: Option<String>,
}Fields
config_file: Vec<String>YAML config file with install options
Load additional config options from the specified YAML config file. Later config files override earlier ones, and command-line options override config files.
Config file keys are long option names without the leading “–”. Values are strings for non-repeatable options, arrays of strings for repeatable options, and “true” for flags. The destination device can be specified with the “dest-device” key.
stream: Option<String>Fedora CoreOS stream
The name of the Fedora CoreOS stream to install, such as “stable”, “testing”, or “next”.
image_url: Option<Url>Manually specify the image URL
image_file: Option<String>Manually specify a local image file
ignition_file: Option<String>Embed an Ignition config from a file
ignition_url: Option<Url>Embed an Ignition config from a URL
Immediately fetch the Ignition config from the URL and embed it in the installed system.
ignition_hash: Option<IgnitionHash>Digest (type-value) of the Ignition config
Verify that the Ignition config matches the specified digest,
formatted as
architecture: DefaultedString<Architecture>Target CPU architecture
Create an install disk for a different CPU architecture than the host.
platform: Option<String>Override the Ignition platform ID
Install a system that will run on the specified cloud or virtualization platform, such as “vmware”.
firstboot_args: Option<String>Additional kernel args for the first boot
append_karg: Vec<String>Append default kernel arg
Add a kernel argument to the installed system.
delete_karg: Vec<String>Delete default kernel arg
Delete a default kernel argument from the installed system.
copy_network: boolCopy network config from install environment
Copy NetworkManager keyfiles from the install environment to the installed system.
network_dir: DefaultedString<NetworkDir>Override NetworkManager keyfile dir for -n
Specify the path to NetworkManager keyfiles to be copied with –copy-network.
[default: /etc/NetworkManager/system-connections/]
save_partlabel: Vec<String>Save partitions with this label glob
save_partindex: Vec<String>Save partitions with this number or range
offline: boolForce offline installation
insecure: boolSkip signature verification
insecure_ignition: boolAllow Ignition URL without HTTPS or hash
stream_base_url: Option<Url>Base URL for CoreOS stream metadata
Override the base URL for fetching CoreOS stream metadata. The default is “https://builds.coreos.fedoraproject.org/streams/”.
preserve_on_error: boolDon’t clear partition table on error
If installation fails, coreos-installer normally clears the destination’s partition table to prevent booting from invalid boot media. Skip clearing the partition table as a debugging aid.
fetch_retries: FetchRetriesFetch retries, or “infinite”
Number of times to retry network fetches, or the string “infinite” to retry indefinitely.
dest_device: Option<String>Destination device
Path to the device node for the destination disk. The beginning of the device will be overwritten without further confirmation.
Implementations
sourceimpl InstallConfig
impl InstallConfig
pub fn expand_config_files(self) -> Result<Self>
Trait Implementations
sourceimpl Args for InstallConfig
impl Args for InstallConfig
sourceimpl CommandFactory for InstallConfig
impl CommandFactory for InstallConfig
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for InstallConfig
impl Debug for InstallConfig
sourceimpl Default for InstallConfig
impl Default for InstallConfig
sourcefn default() -> InstallConfig
fn default() -> InstallConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InstallConfig where
InstallConfig: Default,
impl<'de> Deserialize<'de> for InstallConfig where
InstallConfig: Default,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromArgMatches for InstallConfig
impl FromArgMatches for InstallConfig
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourcefn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourceimpl Parser for InstallConfig
impl Parser for InstallConfig
sourcefn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
sourceimpl PartialEq<InstallConfig> for InstallConfig
impl PartialEq<InstallConfig> for InstallConfig
sourcefn eq(&self, other: &InstallConfig) -> bool
fn eq(&self, other: &InstallConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &InstallConfig) -> bool
fn ne(&self, other: &InstallConfig) -> bool
This method tests for !=.
sourceimpl Serialize for InstallConfig
impl Serialize for InstallConfig
impl StructuralPartialEq for InstallConfig
Auto Trait Implementations
impl RefUnwindSafe for InstallConfig
impl Send for InstallConfig
impl Sync for InstallConfig
impl Unpin for InstallConfig
impl UnwindSafe for InstallConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more