summaryrefslogtreecommitdiff
path: root/scrub
diff options
context:
space:
mode:
Diffstat (limited to 'scrub')
-rw-r--r--scrub/e2scrub_all.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/scrub/e2scrub_all.in b/scrub/e2scrub_all.in
index cdc37ced..24b2c681 100644
--- a/scrub/e2scrub_all.in
+++ b/scrub/e2scrub_all.in
@@ -102,8 +102,9 @@ ls_scan_targets() {
if [ -z "$devices" ]; then
return 0;
fi
- lsblk -o NAME,MOUNTPOINT,FSTYPE -P -n -p $devices | \
- grep FSTYPE=\"ext\[234\]\" | while read vars ; do
+ lsblk -o NAME,MOUNTPOINT,FSTYPE,TYPE -P -n -p $devices | \
+ grep FSTYPE=\"ext\[234\]\" | grep TYPE=\"lvm\" | \
+ while read vars ; do
eval "${vars}"
if [ "${scrub_all}" -eq 1 ] || [ -n "${MOUNTPOINT}" ]; then