diff --git a/etc/rc.d/gbde b/etc/rc.d/gbde index 8842d46981e7..5071ab9a3651 100644 --- a/etc/rc.d/gbde +++ b/etc/rc.d/gbde @@ -81,7 +81,8 @@ gbde_start() for device in $gbde_devices; do parent=${device%.bde} 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 echo "Configuring Disk Encryption for ${parent}."