|
| 1 | +diff --git a/proxmox-post-hook/src/main.rs b/proxmox-post-hook/src/main.rs |
| 2 | +index da47da9..b7b91c3 100644 |
| 3 | +--- a/proxmox-post-hook/src/main.rs |
| 4 | ++++ b/proxmox-post-hook/src/main.rs |
| 5 | +@@ -174,7 +174,7 @@ struct PostHookInfo { |
| 6 | + /// Release information for the ISO used for the installation. |
| 7 | + iso: IsoInfo, |
| 8 | + /// Installed kernel version |
| 9 | +- kernel_version: KernelVersionInformation, |
| 10 | ++ /// kernel_version: KernelVersionInformation, |
| 11 | + /// Describes the boot mode of the machine and the SecureBoot status. |
| 12 | + boot_info: BootInfo, |
| 13 | + /// Information about the installed CPU(s) |
| 14 | +@@ -252,7 +252,8 @@ impl PostHookInfo { |
| 15 | + debian_version: read_file("/etc/debian_version")?, |
| 16 | + product: Self::gather_product_info(&setup_info, &run_cmd)?, |
| 17 | + iso: setup_info.iso_info.clone(), |
| 18 | +- kernel_version: Self::gather_kernel_version(&run_cmd, &open_file)?, |
| 19 | ++ //We remove this entry for port |
| 20 | ++ //kernel_version: Self::gather_kernel_version(&run_cmd, &open_file)?, |
| 21 | + boot_info: BootInfo { |
| 22 | + mode: run_env.boot_type, |
| 23 | + secureboot: run_env.secure_boot, |
| 24 | +@@ -429,7 +430,7 @@ impl PostHookInfo { |
| 25 | + /// |
| 26 | + /// * `run_cmd` - Callback to run a command inside the target chroot. |
| 27 | + /// * `open_file` - Callback to open a file inside the target chroot. |
| 28 | +- #[cfg(target_arch = "x86_64")] |
| 29 | ++ ///#[cfg(target_arch = "x86_64")] This function call was removed before, so it is safe |
| 30 | + fn gather_kernel_version( |
| 31 | + run_cmd: &dyn Fn(&[&str]) -> Result<String>, |
| 32 | + open_file: &dyn Fn(&str) -> Result<File>, |
0 commit comments