Fix dracut example.
authorMilan Broz <gmazyland@gmail.com>
Fri, 3 Aug 2012 13:27:59 +0000 (15:27 +0200)
committerMilan Broz <gmazyland@gmail.com>
Fri, 3 Aug 2012 13:27:59 +0000 (15:27 +0200)
misc/dracut_90reencrypt/reencrypt.sh

index 03fab54fd0d8c2c28138709eacba2f2902e4e7fa..c2e27166e7ffb83eb62d2b16c65286450d1e8858 100755 (executable)
@@ -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() {