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.he...@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to