[pve-devel] [PATCH installer 06/14] common: split out installer setup files loading functionality

Stefan Hanreich s.hanreich at proxmox.com
Thu Jul 11 17:06:16 CEST 2024


On 7/10/24 15:27, Christoph Heiss wrote:
> diff --git a/proxmox-installer-common/src/setup.rs b/proxmox-installer-common/src/setup.rs
> index 9131ac9..29137bf 100644
> --- a/proxmox-installer-common/src/setup.rs
> +++ b/proxmox-installer-common/src/setup.rs
> @@ -163,24 +163,29 @@ pub fn installer_setup(in_test_mode: bool) -> Result<(SetupInfo, LocaleInfo, Run
>      } else {
>          crate::RUNTIME_DIR.to_owned()
>      };
> -    let path = PathBuf::from(base_path);
>  
> +    load_installer_setup_files(&PathBuf::from(base_path))
> +}
> +
> +pub fn load_installer_setup_files(
> +    base_path: &Path,

Could use AsRef<Path> here since it's public API. In the test specific
code we could also use it for parameters, but there it's not really
important since it's not public API.




More information about the pve-devel mailing list