From 2516175dda338846c0d5a7f899ff4436297bedee Mon Sep 17 00:00:00 2001 From: Gabriel de Perthuis Date: Fri, 1 May 2020 16:36:39 +0200 Subject: [PATCH] initramfs: Copy a certificate bundle so curl can do https The path is the one used on Debian and Ubuntu, which should match where initramfs-tools is used. --- src/initramfs-tools/hooks/clevis.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/initramfs-tools/hooks/clevis.in b/src/initramfs-tools/hooks/clevis.in index 3d4eb67f..211b6fcd 100755 --- a/src/initramfs-tools/hooks/clevis.in +++ b/src/initramfs-tools/hooks/clevis.in @@ -103,3 +103,5 @@ done for so in $(ldconfig -p | sed -nr 's/^\s*libnss_dns\.so\.[0-9]+\s.*=>\s*//p'); do copy_exec "${so}" done + +copy_file data @sysconfdir@/ssl/certs/ca-certificates.crt || die 2 "Unable to copy certificate bundle to initrd image"