summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
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() {