pub struct DistroCommands {
pub import_prehook: Option<Vec<String>>,
pub export_prehook: Option<Vec<String>>,
pub export_vm_prehook: Option<Vec<String>>,
}Expand description
Per-distro chroot command overrides for import/export preparation.
Fields§
§import_prehook: Option<Vec<String>>Chroot commands to prepare a rootfs for nspawn boot (import). Installs systemd, dbus, pam/login, sets timezone, cleans cache.
export_prehook: Option<Vec<String>>Chroot commands to prepare a rootfs for container/rootfs export.
export_vm_prehook: Option<Vec<String>>Chroot commands to prepare a rootfs for VM export (fs export --vm).
Installs udev and restores file capabilities stripped during import.
Trait Implementations§
Source§impl Clone for DistroCommands
impl Clone for DistroCommands
Source§fn clone(&self) -> DistroCommands
fn clone(&self) -> DistroCommands
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DistroCommands
impl Debug for DistroCommands
Source§impl Default for DistroCommands
impl Default for DistroCommands
Source§fn default() -> DistroCommands
fn default() -> DistroCommands
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DistroCommands
impl<'de> Deserialize<'de> for DistroCommands
Source§fn 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
Auto Trait Implementations§
impl Freeze for DistroCommands
impl RefUnwindSafe for DistroCommands
impl Send for DistroCommands
impl Sync for DistroCommands
impl Unpin for DistroCommands
impl UnsafeUnpin for DistroCommands
impl UnwindSafe for DistroCommands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more