diff --git a/handlers/sys.in b/handlers/sys.in index 52c9392efd5f9afa798162fe7103355166e0f66f..e037b2fafd4cadbebdc60466a02a145c5893cf65 100644 --- a/handlers/sys.in +++ b/handlers/sys.in @@ -633,7 +633,7 @@ if [ "$partitions" == "yes" ]; then fi if [ "$luksheaders" == "yes" ]; then - devices=`LC_ALL=C $SFDISK -l 2>/dev/null | grep '/dev/' | @SED@ -e 's/Disk //' -re 's/:? +.*//g'` + devices=`LC_ALL=C $SFDISK -l 2>/dev/null | grep -E '^(Disk )?/dev/' | @SED@ -e 's/Disk //' -re 's/:? +.*//g'` [ -n "$devices" ] || warning "No block device found" partitions=`LC_ALL=C $SFDISK -l 2>/dev/null |grep "^/dev" | @AWK@ '{print $1}'` [ -n "$partitions" ] || warning "No partitions found"