Skip to content

Commit

Permalink
fixup! Install CA certificates in initrd
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 committed Nov 7, 2022
1 parent b9af9fa commit 143f9df
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ install_and_enable_unit() {
"${systemdsystemconfdir}/${target}.wants/${unit}"
}

install_dir_recursive() {
dir="$1"; shift
insert_location=$(dirname "${initdir}${dir}")
mkdir -p "${insert_location}"
cp -r "${dir}" "${insert_location}/"
install_path() {
local dir="$1"; shift
mkdir -p "${initdir}/${dir}"
}

install() {
Expand Down Expand Up @@ -69,6 +67,7 @@ install() {
"basic.target"

# TLS / CA store in initramfs
install_dir_recursive /etc/pki
install_dir_recursive /usr/share/pki
install_path /etc/pki/tls/certs/
inst_simple /etc/pki/tls/certs/ca-bundle.crt \
/etc/pki/tls/certs/ca-bundle.crt
}

0 comments on commit 143f9df

Please sign in to comment.