Skip to content

Commit

Permalink
initramfs: Copy a certificate bundle so curl can do https (#189)
Browse files Browse the repository at this point in the history
The path is the one used on Debian and Ubuntu, which should match
where initramfs-tools is used.
  • Loading branch information
g2p authored Jan 7, 2025
1 parent 29d0a4e commit 0839ee2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/initramfs-tools/hooks/clevis.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 0839ee2

Please sign in to comment.