Skip to content

Commit

Permalink
fix: only copy dkms keys for coreos (ublue-os#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles authored Jul 1, 2024
1 parent e9f7514 commit c470982
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ fi
install -Dm644 /tmp/certs/public_key.der /etc/pki/akmods/certs/public_key.der
install -Dm644 /tmp/certs/private_key.priv /etc/pki/akmods/private/private_key.priv

install -Dm644 /tmp/certs/public_key.der /lib/modules/${KERNEL_VERSION}/build/certs/signing_key.x509
install -Dm644 /tmp/certs/private_key.priv /lib/modules/${KERNEL_VERSION}/build/certs/signing_key.pem
if [[ "coreos" == "${KERNEL_FLAVOR}" ]]; then
install -Dm644 /tmp/certs/public_key.der /lib/modules/${KERNEL_VERSION}.x86_64/build/certs/signing_key.x509
install -Dm644 /tmp/certs/private_key.priv /lib/modules/${KERNEL_VERSION}.x86_64/build/certs/signing_key.pem
fi

# protect against incorrect permissions in tmp dirs which can break akmods builds
chmod 1777 /tmp /var/tmp
Expand Down

0 comments on commit c470982

Please sign in to comment.