summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/share/initramfs-tools/hooks/cryptlukssc7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/share/initramfs-tools/hooks/cryptlukssc b/usr/share/initramfs-tools/hooks/cryptlukssc
index 5cf2d3d..439d0b8 100755
--- a/usr/share/initramfs-tools/hooks/cryptlukssc
+++ b/usr/share/initramfs-tools/hooks/cryptlukssc
@@ -124,6 +124,11 @@ else
fi
# LUKS keys
-cp -LRp /etc/trinity/luks/card ${DESTDIR}/tde_luks_keys
+if [ -e /etc/trinity/luks/card ]
+then
+ cp -LRp /etc/trinity/luks/card ${DESTDIR}/tde_luks_keys
+else
+ mkdir -p ${DESTDIR}/tde_luks_keys
+fi
exit 0