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
db0e25eeb9
commit
b0a99991d9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140580
@ -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