summaryrefslogtreecommitdiff
path: root/modules.d/90crypt
diff options
context:
space:
mode:
authorLeho Kraav <leho@kraav.com>2012-07-24 15:08:55 +0300
committerHarald Hoyer <harald@redhat.com>2012-07-25 10:31:43 +0200
commite88e3b279784ca801996c5e32db8c3bc2df1ec29 (patch)
tree7d063dc1ca17f2e44296c7f23741201ace614561 /modules.d/90crypt
parentdf68781fca048de2f880be37ab9e1ede9bea5051 (diff)
downloaddracut-e88e3b279784ca801996c5e32db8c3bc2df1ec29.tar.gz
dracut-e88e3b279784ca801996c5e32db8c3bc2df1ec29.tar.bz2
dracut-e88e3b279784ca801996c5e32db8c3bc2df1ec29.zip
91crypt-loop: replace basename calls with string matching
Diffstat (limited to 'modules.d/90crypt')
-rwxr-xr-xmodules.d/90crypt/crypt-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/90crypt/crypt-lib.sh b/modules.d/90crypt/crypt-lib.sh
index d5caa859..d66ba885 100755
--- a/modules.d/90crypt/crypt-lib.sh
+++ b/modules.d/90crypt/crypt-lib.sh
@@ -188,7 +188,7 @@ readkey() {
if [ -f /lib/dracut-crypt-loop-lib.sh ]; then
. /lib/dracut-crypt-loop-lib.sh
loop_decrypt "$mntp" "$keypath" "$keydev" "$device"
- initqueue --onetime --finished --unique --name "crypt-loop-cleanup-99-$(basename $mntp)" \
+ initqueue --onetime --finished --unique --name "crypt-loop-cleanup-99-${mntp##*/}" \
$(command -v umount) "$mntp; " $(command -v rmdir) "$mntp"
return 0
else