Skip to content
Snippets Groups Projects

Don't try to save partition tables for /dev/mapper devices

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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
Loading