diff options
author | Eric Hameleers <alien@slackware.com> | 2022-03-24 14:23:17 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-03-24 14:23:17 +0100 |
commit | 7b5299868c1c3f50ec33b32b69fa4a8183d8f95a (patch) | |
tree | a4bacccf34d9d8e311844873ee45aeb360a1ea97 | |
parent | 7e56cda2a2c4e60bdca6dad54990be073f20766b (diff) | |
download | liveslak-7b5299868c1c3f50ec33b32b69fa4a8183d8f95a.tar.gz liveslak-7b5299868c1c3f50ec33b32b69fa4a8183d8f95a.tar.xz |
Update of CA certificates should happen before running slackpkg
Diffstat (limited to '')
-rwxr-xr-x | make_slackware_live.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 1b97c77..4593c79 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -2032,6 +2032,10 @@ EOT echo "-- Creating slackpkg cache, takes a few seconds..." chroot "${LIVE_ROOTDIR}" /bin/bash <<EOSL 2>${DBGOUT} +# Rebuild SSL certificate database to prevent GPG verification errors +# which are in fact triggered by SSL certificate errors: +/usr/sbin/update-ca-certificates --fresh 1>/dev/null + if [ -f var/log/packages/slackpkg+-* ] ; then cat <<EOPL > etc/slackpkg/slackpkgplus.conf SLACKPKGPLUS=on @@ -3094,10 +3098,8 @@ sed -i -e '/systohc/s/^/# /' ${LIVE_ROOTDIR}/etc/rc.d/rc.6 # Run some package setup scripts (usually run by the slackware installer), # as well as some of the delaying commands in rc.M and rc.modules: -chroot ${LIVE_ROOTDIR} /bin/bash <<EOCR -# Rebuild SSL certificate database: -/usr/sbin/update-ca-certificates --fresh 1>/dev/null 2>${DBGOUT} +chroot ${LIVE_ROOTDIR} /bin/bash <<EOCR # Run bits from rc.M so we won't need to run them again in the live system: /sbin/depmod $KVER /sbin/ldconfig |