[pve-devel] [PATCH installer 2/2] installer-common: throw setup error if no network interfaces were found
Christoph Heiss
c.heiss at proxmox.com
Thu Oct 24 11:00:43 CEST 2024
We do that check already in the GUI, so add it for TUI (and by
extension, the auto-installer) too.
Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
proxmox-installer-common/src/setup.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/proxmox-installer-common/src/setup.rs b/proxmox-installer-common/src/setup.rs
index e4e609b..e9a5b96 100644
--- a/proxmox-installer-common/src/setup.rs
+++ b/proxmox-installer-common/src/setup.rs
@@ -193,6 +193,8 @@ pub fn installer_setup(in_test_mode: bool) -> Result<(SetupInfo, LocaleInfo, Run
runtime_info.disks.sort();
if runtime_info.disks.is_empty() {
Err("The installer could not find any supported hard disks.".to_owned())
+ } else if runtime_info.network.interfaces.is_empty() {
+ Err("The installer could not find any supported network interface cards.".to_owned())
} else {
Ok((installer_info, locale_info, runtime_info))
}
--
2.46.0
More information about the pve-devel
mailing list