From 0839ee294a2cbb0c1ecf1749c9ca530ef9f59f8f Mon Sep 17 00:00:00 2001 From: Gabriel de Perthuis Date: Tue, 7 Jan 2025 12:57:33 +0100 Subject: [PATCH] initramfs: Copy a certificate bundle so curl can do https (#189) 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"