Skip to content
Snippets Groups Projects
Verified Commit 4ad044ad authored by lyz's avatar lyz
Browse files

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

parent e0b43754
No related branches found
No related tags found
No related merge requests found
...@@ -608,7 +608,7 @@ fi ...@@ -608,7 +608,7 @@ fi
if [ "$partitions" == "yes" ]; then if [ "$partitions" == "yes" ]; then
if [ "$dosfdisk" == "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 if [ "$devices" == "" ]; then
warning "No harddisks found" warning "No harddisks found"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment