commit: b0b13eb38269ac502ace11b6a99414a1b6122d44
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 13 03:50:59 2019 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Oct 13 14:13:03 2019 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=b0b13eb3
initrd.scripts: openLUKS(): fix $mntkey cleanup
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
defaults/initrd.scripts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 7184cfd..c016662 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1835,7 +1835,7 @@ openLUKS() {
run umount "${mntkey}" >/dev/null 2>&1
fi
- [ -d "${mntkey}" ] run rmdir -p "${mntkey}" >/dev/null 2>&1
+ [ -d "${mntkey}" ] && run rmdir -p "${mntkey}" >/dev/null 2>&1
}
iface_name() {