From 0c1efd1f8a111bf1a8ca90b47c8435f2345b28c8 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Fri, 3 Aug 2012 15:27:59 +0200 Subject: Fix dracut example. --- misc/dracut_90reencrypt/reencrypt.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'misc') 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() { -- cgit v1.2.3