mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-10 04:42:31 +01:00
Support LUKS in disk partitions
This commit is contained in:
parent
e0b4375400
commit
469a3fd5ab
@ -633,7 +633,7 @@ if [ "$partitions" == "yes" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$luksheaders" == "yes" ]; then
|
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"
|
[ -n "$devices" ] || warning "No block device found"
|
||||||
partitions=`LC_ALL=C $SFDISK -l 2>/dev/null |grep "^/dev" | @AWK@ '{print $1}'`
|
partitions=`LC_ALL=C $SFDISK -l 2>/dev/null |grep "^/dev" | @AWK@ '{print $1}'`
|
||||||
[ -n "$partitions" ] || warning "No partitions found"
|
[ -n "$partitions" ] || warning "No partitions found"
|
||||||
|
Loading…
Reference in New Issue
Block a user