[pve-devel] [PATCH installer 02/14] tree-wide: fix some typos

Christoph Heiss c.heiss at proxmox.com
Wed Jul 10 15:27:41 CEST 2024


No functional changes.

Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
 .../src/bin/proxmox-auto-installer.rs                |  2 +-
 proxmox-chroot/src/main.rs                           |  2 +-
 proxmox-fetch-answer/src/fetch_plugins/partition.rs  | 12 ++++++------
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/proxmox-auto-installer/src/bin/proxmox-auto-installer.rs b/proxmox-auto-installer/src/bin/proxmox-auto-installer.rs
index 9fcec1e..bf6f8fb 100644
--- a/proxmox-auto-installer/src/bin/proxmox-auto-installer.rs
+++ b/proxmox-auto-installer/src/bin/proxmox-auto-installer.rs
@@ -57,7 +57,7 @@ fn auto_installer_setup(in_test_mode: bool) -> Result<(Answer, UdevInfo)> {
 
 fn main() -> ExitCode {
     if let Err(err) = init_log() {
-        panic!("could not initilize logging: {}", err);
+        panic!("could not initialize logging: {}", err);
     }
 
     let in_test_mode = match env::args().nth(1).as_deref() {
diff --git a/proxmox-chroot/src/main.rs b/proxmox-chroot/src/main.rs
index 519e3f3..7885ce7 100644
--- a/proxmox-chroot/src/main.rs
+++ b/proxmox-chroot/src/main.rs
@@ -14,7 +14,7 @@ static BINDMOUNTS: [&str; 4] = ["dev", "proc", "run", "sys"];
 const TARGET_DIR: &str = "/target";
 const ZPOOL_NAME: &str = "rpool";
 
-/// Helper tool to prepare eveything to `chroot` into an installation
+/// Helper tool to prepare everything to `chroot` into an installation
 #[derive(Parser, Debug)]
 #[command(author, version, about, long_about = None)]
 struct Cli {
diff --git a/proxmox-fetch-answer/src/fetch_plugins/partition.rs b/proxmox-fetch-answer/src/fetch_plugins/partition.rs
index 0479c8f..4472922 100644
--- a/proxmox-fetch-answer/src/fetch_plugins/partition.rs
+++ b/proxmox-fetch-answer/src/fetch_plugins/partition.rs
@@ -45,20 +45,20 @@ fn path_exists_logged(file_name: &str, search_path: &str) -> Option<PathBuf> {
 
 /// Searches for upper and lower case existence of the partlabel in the search_path
 ///
-/// # Arguemnts
+/// # Arguments
 /// * `partlabel_source` - Partition Label, used as upper and lower case
-/// * `search_path` - Path where to search for the partiiton label
+/// * `search_path` - Path where to search for the partition label
 fn scan_partlabels(partlabel: &str, search_path: &str) -> Result<PathBuf> {
     let partlabel_upper_case = partlabel.to_uppercase();
     if let Some(path) = path_exists_logged(&partlabel_upper_case, search_path) {
-            info!("Found partition with label '{partlabel_upper_case}'");
-            return Ok(path);
+        info!("Found partition with label '{partlabel_upper_case}'");
+        return Ok(path);
     }
 
     let partlabel_lower_case = partlabel.to_lowercase();
     if let Some(path) = path_exists_logged(&partlabel_lower_case, search_path) {
-            info!("Found partition with label '{partlabel_lower_case}'");
-            return Ok(path);
+        info!("Found partition with label '{partlabel_lower_case}'");
+        return Ok(path);
     }
 
     bail!("Could not detect upper or lower case labels for '{partlabel}'");
-- 
2.45.1





More information about the pve-devel mailing list