From 49398900fbc01528bf3658941b0158412a6e79e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Mon, 12 Oct 2020 14:53:51 -0300 Subject: [PATCH] shutils/chroot.sh: fix syslog configuration. The file was created in chroot_prepare(), but the configuration directory was being cleaned in chroot_sync_repodata(). This commit moves the configuration to after the directories are created. Fixes #25534 --- common/xbps-src/shutils/chroot.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index ea63bf7e779..1a3fc6a89fc 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -127,9 +127,6 @@ chroot_prepare() { # Copy /etc/hosts from base-files. cp -f $XBPS_SRCPKGDIR/base-files/files/hosts $XBPS_MASTERDIR/etc - mkdir -p $XBPS_MASTERDIR/etc/xbps.d - echo "syslog=false" >> $XBPS_MASTERDIR/etc/xbps.d/00-xbps-src.conf - # Prepare default locale: en_US.UTF-8. if [ -s ${XBPS_MASTERDIR}/etc/default/libc-locales ]; then printf '%s\n' \ @@ -204,6 +201,8 @@ chroot_sync_repodata() { cp -f $XBPS_DISTDIR/etc/xbps.d/custom/*.conf $confdir cp -f $XBPS_DISTDIR/etc/xbps.d/custom/*.conf $crossconfdir fi + echo "syslog=false" > $confdir/00-xbps-src.conf + if [ "$CHROOT_READY" ]; then hostdir=/host else