From 0cd87b3cdd2cf47154ec1e50d480a873ff37c1cd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 31 Oct 2015 07:59:06 +0100 Subject: [PATCH] xbps-src: perform bootstrapping in two phases. - binary-bootstrap unpacks all pkgs and configure base-files. - after accessing the chroot for the first time all pkgs are configured. This should fix the issue of ca-certificates not generating the certs. --- xbps-src | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xbps-src b/xbps-src index 4f8080dbf3..2127dc8490 100755 --- a/xbps-src +++ b/xbps-src @@ -284,7 +284,7 @@ install_bbootstrap() { mkdir -p $XBPS_MASTERDIR/var/db/xbps/keys cd $XBPS_MASTERDIR cp -f $XBPS_COMMONDIR/repo-keys/*.plist $XBPS_MASTERDIR/var/db/xbps/keys - ${_bootstrap_arch} $XBPS_INSTALL_CMD ${XBPS_INSTALL_ARGS:+-S $XBPS_INSTALL_ARGS} -y base-chroot${_subarch} + ${_bootstrap_arch} $XBPS_INSTALL_CMD ${XBPS_INSTALL_ARGS:+-S $XBPS_INSTALL_ARGS} -yU base-chroot${_subarch} if [ $? -ne 0 ]; then msg_error "Failed to install bootstrap packages!\n" fi @@ -602,6 +602,10 @@ if [ -z "$IN_CHROOT" ]; then fi fi +if [ -n "$IN_CHROOT" ]; then + xbps-reconfigure -a &>/dev/null +fi + # # Main switch. #