Skip to main content

InstallConfig

Struct InstallConfig 

Source
pub struct InstallConfig {
Show 25 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 console: Vec<Console>, 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 secure_ipl: bool, 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

coreos-installer appends “.sig” to find the GPG signature for the image, which must exist and be valid. A missing signature can be ignored with –insecure.

§image_file: Option<String>

Manually specify a local image file

coreos-installer appends “.sig” to find the GPG signature for the image, which must exist and be valid. A missing signature can be ignored with –insecure.

§ignition_file: Option<String>

Embed an Ignition config from a file

Embed the specified Ignition config in the installed system.

§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 -. can be sha256 or sha512.

§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”.

§console: Vec<Console>

Kernel and bootloader console

Set the kernel and bootloader console, using the same syntax as the parameter to the “console=” kernel argument.

§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: bool

Copy 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

Preserve any existing partitions on the destination device whose partition label (not filesystem label) matches the specified glob pattern. Multiple patterns can be specified in multiple options, or in a single option separated by commas.

Saved partitions will be renumbered if necessary. If partitions overlap with the install image, or installation fails for any other reason, the specified partitions will still be preserved.

§save_partindex: Vec<String>

Save partitions with this number or range

Preserve any existing partitions on the destination device whose partition number matches the specified value or range. Ranges can be bounded on both ends (“5-7”, inclusive) or one end (“5-” or “-7”). Multiple numbers or ranges can be specified in multiple options, or in a single option separated by commas.

Saved partitions will be renumbered if necessary. If partitions overlap with the install image, or installation fails for any other reason, the specified partitions will still be preserved.

§offline: bool

Force offline installation

§insecure: bool

Allow unsigned image

Allow the signature to be absent. Does not allow an existing signature to be invalid.

§insecure_ignition: bool

Allow 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: bool

Don’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: FetchRetries

Fetch retries, or “infinite”

Number of times to retry network fetches, or the string “infinite” to retry indefinitely.

§secure_ipl: bool

Enable IBM Secure IPL

§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§

Trait Implementations§

Source§

impl Args for InstallConfig

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl CommandFactory for InstallConfig

Source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
Source§

impl Debug for InstallConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for InstallConfig

Source§

fn default() -> InstallConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for InstallConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl FromArgMatches for InstallConfig

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Parser for InstallConfig

Source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
Source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
Source§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error.
Source§

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.
Source§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error. Read more
Source§

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.
Source§

impl PartialEq for InstallConfig

Source§

fn eq(&self, other: &InstallConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for InstallConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for InstallConfig

Source§

impl StructuralPartialEq for InstallConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> NoneValue for T
where T: Default,

Source§

type NoneType = T

Source§

fn null_value() -> T

The none-equivalent value.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,