浏览代码

installer: ignore partitions that are part of LVM.

Juan RP 10 年之前
父节点
当前提交
9883c5eae6
共有 1 个文件被更改,包括 1 次插入0 次删除
  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}"