From 469a3fd5ab2fe06b7dd190e6f6820b795d26f744 Mon Sep 17 00:00:00 2001 From: Lyz Date: Mon, 30 Apr 2018 12:29:23 +0200 Subject: [PATCH] Support LUKS in disk partitions --- handlers/sys.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/sys.in b/handlers/sys.in index 35b9b6c..1afe7f6 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 "^Disk /dev" | @AWK@ '{print $2}' | cut -d: -f1` + devices=`LC_ALL=C $SFDISK -l 2>/dev/null | grep '/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"