From 0efb5e9fa15c62637d6cca063e8393a247aff4c7 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 9 May 2021 12:59:02 +0200 Subject: [PATCH] fixes --- modules/10-disk/config | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/10-disk/config b/modules/10-disk/config index 72581b3..5cdbe1c 100644 --- a/modules/10-disk/config +++ b/modules/10-disk/config @@ -16,12 +16,6 @@ for i in $(find /dev/disk/by-id/ -type l -printf "%P\n"|grep -v "part" |tac); do if [[ "${name}" == *"/dev/sr"* ]]; then continue fi - if [[ "${name}" == "ata-"* ]]; then - continue - fi - if [[ "${name}" == "usb-"* ]]; then - continue - fi index=$(( index + 1 )) size="$(fdisk -l "${name}" | head -n1 | awk '{print $3}')" size=$(awk "BEGIN { printf(\"%.0f\n\", ${size}); }")