mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-10 04:42:31 +01:00
Merge branch 'patch-1' into 'master'
Exclude zram devices, they don't have a partition table See merge request riseuplabs/backupninja!12
This commit is contained in:
commit
fb3b45343b
@ -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$" | grep -v '^/dev/zram' | @AWK@ '{print $1}'`
|
||||||
if [ "$devices" == "" ]; then
|
if [ "$devices" == "" ]; then
|
||||||
warning "No harddisks found"
|
warning "No harddisks found"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user