From 4ad044adf2f959c6f3a665a223d6858ff7e4eeed Mon Sep 17 00:00:00 2001 From: Lyz <lyz@riseup.net> Date: Mon, 30 Apr 2018 12:57:26 +0200 Subject: [PATCH] Don't try to save partition tables for /dev/mapper devices --- handlers/sys.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/sys.in b/handlers/sys.in index 35b9b6c..671c972 100644 --- a/handlers/sys.in +++ b/handlers/sys.in @@ -608,7 +608,7 @@ fi if [ "$partitions" == "yes" ]; then if [ "$dosfdisk" == "yes" ]; then - devices=`LC_ALL=C $LSBLK --output NAME,TYPE --list --paths 2>/dev/null | grep "disk$" | @AWK@ '{print $1}'` + devices=`LC_ALL=C $LSBLK --output NAME,TYPE --list --paths 2>/dev/null | grep "disk$" | @AWK@ '{print $1}' | grep -v '/dev/mapper/'` if [ "$devices" == "" ]; then warning "No harddisks found" fi -- GitLab