summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorMilan Broz <gmazyland@gmail.com>2012-08-03 15:27:59 +0200
committerMilan Broz <gmazyland@gmail.com>2012-08-03 15:27:59 +0200
commit0c1efd1f8a111bf1a8ca90b47c8435f2345b28c8 (patch)
tree964f622adab2228ffaf77a7158d300a2c4da65ec /misc
parentbc1cbd8065ac132d6e00a2b84cab8d3072f67c3c (diff)
downloadcryptsetup-0c1efd1f8a111bf1a8ca90b47c8435f2345b28c8.tar.gz
cryptsetup-0c1efd1f8a111bf1a8ca90b47c8435f2345b28c8.tar.bz2
cryptsetup-0c1efd1f8a111bf1a8ca90b47c8435f2345b28c8.zip
Fix dracut example.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/dracut_90reencrypt/reencrypt.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/dracut_90reencrypt/reencrypt.sh b/misc/dracut_90reencrypt/reencrypt.sh
index 03fab54..c2e2716 100755
--- a/misc/dracut_90reencrypt/reencrypt.sh
+++ b/misc/dracut_90reencrypt/reencrypt.sh
@@ -27,10 +27,9 @@ reenc_readkey() {
local mntp="/tmp/reencrypted-mount-tmp"
mkdir "$mntp"
- mount -r "$keydev" "$mntp" || return
- cat "$mntp/$keypath"
+ mount -r "$keydev" "$mntp" && cat "$mntp/$keypath"
umount "$mntp"
- rmdir "$mntp"
+ rm -r "$mntp"
}
reenc_run() {