workaround for ca-certificate-utils-20150402-1

For some reason, ca-certificate-utils-20150402-1 removes
/etc/ssl/certs/ca-certificates.crt, which is needed by
curl, the http(s) backend for curl. Until either curl
is reconfigured or ca-certificates.crt is restored,
we must create it ourselves.

This fixes issue #10.
This commit is contained in:
Gavin Li 2015-04-14 03:11:25 -07:00
parent d7b49bfd15
commit 399bf45a83
1 changed files with 9 additions and 1 deletions

View File

@ -319,7 +319,15 @@ prebootstrap_configuration() {
log "Doing pre-bootstrap configuration ..."
rmdir /archroot/var/cache/pacman/pkg
ln -s ../../../packages /archroot/var/cache/pacman/pkg
chroot /archroot /sbin/trust extract-compat
chroot /archroot /usr/bin/update-ca-trust
# XXX WORKAROUND: ca-certificate-utils-20150402-1 removes
# /etc/ssl/certs/ca-certificates.crt, which is needed
# by curl, which is used by pacman. Until curl updates
# its CA path (or the file gets created again), we must
# create it ourselves.
local cafile=/etc/ssl/certs/ca-certificates.crt
local catarget=../../ca-certificates/extracted/tls-ca-bundle.pem
[ -e /archroot/${cafile} ] || ln -s ${catarget} /archroot/${cafile}
}
bootstrap_system() {