author | Alberto Bertogli
<albertito@blitiri.com.ar> 2024-08-10 16:25:41 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2024-08-10 16:25:41 UTC |
parent | 26069a52958532d8ce481a26218556daf333fffa |
cryptsetup/initramfs-hooks/kxc | +4 | -2 |
diff --git a/cryptsetup/initramfs-hooks/kxc b/cryptsetup/initramfs-hooks/kxc index ab78e6f..217bc0e 100755 --- a/cryptsetup/initramfs-hooks/kxc +++ b/cryptsetup/initramfs-hooks/kxc @@ -23,5 +23,7 @@ esac # it for us if it sees it being used as a keyscript. copy_exec /usr/bin/kxc /bin -# Install the configuration into initramfs -cp -a /etc/kxc/ ${DESTDIR}/etc +# Install the configuration into initramfs (if it exists). +if [ -d /etc/kxc/ ]; then + cp -a /etc/kxc/ ${DESTDIR}/etc +fi