Fix handling of providers with / in them (e.g. mirror/foo).
Submitted by: Attila Nagy <bra@fsn.hu> MFC after: 1 week
This commit is contained in:
parent
5c490b063a
commit
33e44ca5a9
@ -81,7 +81,8 @@ gbde_start()
|
|||||||
for device in $gbde_devices; do
|
for device in $gbde_devices; do
|
||||||
parent=${device%.bde}
|
parent=${device%.bde}
|
||||||
parent=${parent#/dev/}
|
parent=${parent#/dev/}
|
||||||
eval "lock=\${gbde_lock_${parent}-\"${gbde_lockdir}/${parent}.lock\"}"
|
parent_=`echo ${parent} | sed "s/\//_/g"`
|
||||||
|
eval "lock=\${gbde_lock_${parent_}-\"${gbde_lockdir}/${parent_}.lock\"}"
|
||||||
if [ -e "/dev/${parent}" -a ! -e "/dev/${parent}.bde" ]; then
|
if [ -e "/dev/${parent}" -a ! -e "/dev/${parent}.bde" ]; then
|
||||||
echo "Configuring Disk Encryption for ${parent}."
|
echo "Configuring Disk Encryption for ${parent}."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user