]> git.proxmox.com Git - pve-installer.git/commitdiff
hd_list: skip all devices with iso9660 as FS
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Jul 2019 13:21:10 +0000 (15:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Jul 2019 13:21:12 +0000 (15:21 +0200)
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@proxmox.com>
proxinstall

index c8cdf21bb56194dae711b1d0e9cd26a5188160fe..9aa38e5b35a2e37d1a065d3aa17185166fcc8605 100755 (executable)
@@ -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;