summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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
commit7b5299868c1c3f50ec33b32b69fa4a8183d8f95a (patch)
treea4bacccf34d9d8e311844873ee45aeb360a1ea97
parent7e56cda2a2c4e60bdca6dad54990be073f20766b (diff)
downloadliveslak-7b5299868c1c3f50ec33b32b69fa4a8183d8f95a.tar.gz
liveslak-7b5299868c1c3f50ec33b32b69fa4a8183d8f95a.tar.xz
Update of CA certificates should happen before running slackpkg
Diffstat (limited to '')
-rwxr-xr-xmake_slackware_live.sh8
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