From 399bf45a83189b07e412c8b0945a21ea7030670d Mon Sep 17 00:00:00 2001 From: Gavin Li Date: Tue, 14 Apr 2015 03:11:25 -0700 Subject: [PATCH] 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. --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1449d49..c4d8aa8 100755 --- a/install.sh +++ b/install.sh @@ -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() {