pub fn try_new() -> Result<Self> {
        let target =
            TempDir::new("afterburn").chain_err(|| "failed to create temporary directory")?;
        crate::util::mount_ro(
            &Path::new("/dev/disk/by-label/").join(CONFIG_DRIVE_LABEL),
            target.path(),
            "iso9660",
            3, // maximum retries
        )?;

        let provider = Self {
            drive_path: target.path().to_owned(),
            temp_dir: Some(target),
        };
        Ok(provider)
    }
/// Try to build a new provider client.
///
/// This internally tries to mount (and own) the config-drive.
Try to build a new provider client.
This internally tries to mount (and own) the config-drive.
Try to build a new provider client . This internally tries to mount ( and own ) the config - drive .
pub fn try_new() -> Result<Self> {
        let target =
            TempDir::new("afterburn").chain_err(|| "failed to create temporary directory")?;
        crate::util::mount_ro(
            &Path::new("/dev/disk/by-label/").join(CONFIG_DRIVE_LABEL),
            target.path(),
            "iso9660",
            3, // maximum retries
        )?;
        let provider = Self {
            drive_path: target.path().to_owned(),
            temp_dir: Some(target),
        };
        Ok(provider)
    }
pub fn try_new ( ) -> Result < Self > { let target = TempDir :: new ( " " ) . chain_err ( | | " " ) ? ; crate :: util :: mount_ro ( & Path :: new ( " " ) . join ( CONFIG_DRIVE_LABEL ) , target . path ( ) , " " , 3 , // maximum retries ) ? ; let provider = Self { drive_path : target . path ( ) . to_owned ( ) , temp_dir : Some ( target ) , } ; Ok ( provider ) }
Try to build a new provider client.
Try to build a new provider client .