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

Support LUKS in disk partitions

parent e0b43754
Branches
Tags
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment