Explorar o código

installer: ignore partitions that are part of LVM.

Juan RP %!s(int64=10) %!d(string=hai) anos
pai
achega
9883c5eae6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      installer.sh.in

+ 1 - 0
installer.sh.in

@@ -156,6 +156,7 @@ show_partitions() {
                 fstype=$(lsblk -nfr /dev/$part|awk '{print $2}'|head -1)
                 [ "$fstype" = "iso9660" ] && continue
                 [ "$fstype" = "crypto_LUKS" ] && continue
+                [ "$fstype" = "LVM2_member" ] && continue
                 fssize=$(lsblk -nr /dev/$part|awk '{print $4}'|head -1)
                 echo "/dev/$part"
                 echo "size:${fssize:-unknown};fstype:${fstype:-none}"