Skip to content

Commit

Permalink
initramfs: Copy a certificate bundle so curl can do https
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 committed Mar 26, 2024
1 parent 52c2b24 commit 2516175
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 2516175

Please sign in to comment.