[pve-devel] applied: [PATCH installer] hd_list: skip all devices with iso9660 as FS

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jul 5 15:41:11 CEST 2019


This ensures that when booting from a USB stick, or similar device,
we do not show that device in the "Target Harddisk" selector.

While there may be some constructed cases where this actually worked
and was wanted, e.g., one created a partition on the end of a USB
storage device, put the ISO on that and used the beginning of that
device as target, I'd say that even if that worked with luck, it's
better not actively not support it.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 proxinstall | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxinstall b/proxinstall
index c8cdf21..9aa38e5 100755
--- a/proxinstall
+++ b/proxinstall
@@ -592,6 +592,7 @@ sub hd_list {
 	next if $info !~ m/^E: DEVTYPE=disk$/m;
 
 	next if $info =~ m/^E: ID_CDROM/m;
+	next if $info =~ m/^E: ID_FS_TYPE=iso9660/m;
 
 	my ($name) = $info =~ m/^N: (\S+)$/m;
 
-- 
2.20.1





More information about the pve-devel mailing list