[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 7832140: Fix defect introduced 20200521T2005Z
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 7832140: Fix defect introduced 20200521T2005Z: mismounted cache |
Date: |
Fri, 22 May 2020 13:31:13 -0400 (EDT) |
branch: master
commit 7832140df80e25b870ee2da6c06246441377810f
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Fix defect introduced 20200521T2005Z: mismounted cache
For a
debian-testing [bullseye] within centos within debian-stable [buster]
chroot chain, commit 8054eeb9a738 of 20200521T2005Z mounted the
innermost chroot's /var/cache/apt/archives/ on the intermediate
chroot's /var/cache/bullseye/ but failed to mount the host's
/var/cache/bullseye/ directory anywhere.
This made 'install_centos.sh' take 45% longer (37m vs 25.5m) because
it downloaded a complete debian system each time; lmi however built
successfully, and all its tests passed. By mounting the host's
/var/cache/bullseye/ directory to the centos chroot's directory of
the same name, this change restores the former speed.
---
install_centos.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/install_centos.sh b/install_centos.sh
index 6701bc7..6eb1d36 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -137,6 +137,11 @@ cp -a ~/.zshrc
/srv/chroot/centos7lmi/home/"${NORMAL_USER}"/.zshrc || echo "Huh?
# here and elsewhere.
# BEGIN ./lmi_setup_13.sh
+CACHEDIR=/var/cache/"${CODENAME}"
+mkdir -p "${CACHEDIR}"
+mkdir -p /srv/chroot/centos7lmi/"${CACHEDIR}"
+mount --bind "${CACHEDIR}" /srv/chroot/centos7lmi/"${CACHEDIR}"
+
mkdir -p /srv/cache_for_lmi
du -sb /srv/chroot/centos7lmi/srv/cache_for_lmi || echo "Okay."
mkdir -p /srv/chroot/centos7lmi/srv/cache_for_lmi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 7832140: Fix defect introduced 20200521T2005Z: mismounted cache,
Greg Chicares <=