Fix some errors determin backup device.
This commit is contained in:
@ -89,13 +89,13 @@ if $crypto_backup_device ; then
|
||||
backup_raw_partition=$_backup_partition
|
||||
backup_partition="/dev/mapper/${backup_partition_name}"
|
||||
|
||||
elif $extern_usb_disk || $extern_sata_disk || intern_disk ; then
|
||||
elif $extern_usb_disk || $extern_sata_disk || $intern_disk ; then
|
||||
|
||||
## - In case of unencrypted (and labeled) extern backup disc
|
||||
## -
|
||||
if [ -d "/dev/disk/by-label" ]; then
|
||||
backup_partition=$(realpath /dev/disk/by-label/`ls /dev/disk/by-label | grep $base_label_name`)
|
||||
[[ "X" != "X$backup_partition" ]] && _found=true
|
||||
backup_partition=$(realpath /dev/disk/by-label/`ls /dev/disk/by-label | grep -i $base_label_name`)
|
||||
[[ "X${backup_partition}" != "X$(realpath /dev/disk/by-label/)" ]] && _found=true
|
||||
fi
|
||||
|
||||
## - Otherwise, assuming the backup disc is the alphabetic last attached device
|
||||
|
Reference in New Issue
Block a user