Skip to content

Commit

Permalink
Copy trusted keys to chroot
Browse files Browse the repository at this point in the history
If the user has installed additional sources (for example dbgsym
sources), and the trusted keys are not available in the chroot, the
updates in the chroot can fail as some keys aren't available.
  • Loading branch information
matt335672 committed Sep 9, 2024
1 parent 2e083f6 commit f3d8f98
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/install_pulseaudio_sources_apt_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,15 @@ for file in $(find /etc/apt/ /etc/apt/sources.list.d/ /etc/apt/mirrors/ \
sudo install -Dm 0644 $file $BUILDROOT/$file || exit $?
done

for file in $(find /etc/apt/trusted.gpg.d/ \
-maxdepth 1 \
-type f -name '*.gpg' ); do
if [ ! -f "$BUILDROOT/$file" ]; then
echo "- Copying $file to the root"
sudo install -Dm 0644 $file $BUILDROOT/$file || exit $?
fi
done

# Create a separate directory in $BUILDROOT to hold the build
# artefacts.
#
Expand Down

0 comments on commit f3d8f98

Please sign in to comment.