[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master d496c75 15/18: Move some more script blocks
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master d496c75 15/18: Move some more script blocks |
Date: |
Thu, 21 May 2020 19:43:13 -0400 (EDT) |
branch: master
commit d496c75e004cf1d421216b0230b14f6f22689bae
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Move some more script blocks
As always, moving commands from host to chroot requires:
:%s/\/srv\/chroot\/centos7lmi//gc
---
install_centos.sh | 7 +------
install_centos_1.sh | 7 +++++++
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/install_centos.sh b/install_centos.sh
index 0bc975d..4fff747 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -137,19 +137,14 @@ cp -a ~/.zshrc
/srv/chroot/centos7lmi/home/"${NORMAL_USER}"/.zshrc || echo "Huh?
# If that works well, then treat vim configuration the same way,
# here and elsewhere.
-schroot --chroot=centos7lmi --user=root --directory=/tmp ./install_centos_1.sh
-
# BEGIN ./lmi_setup_13.sh
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
mount --bind /srv/cache_for_lmi /srv/chroot/centos7lmi/srv/cache_for_lmi
-# Might as well do likewise now for ${CHRTNAME} as well.
-du -sb /srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/srv/cache_for_lmi ||
echo "Okay."
-mkdir -p /srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/srv/cache_for_lmi
-mount --bind /srv/cache_for_lmi
/srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/srv/cache_for_lmi
# END ./lmi_setup_13.sh
+schroot --chroot=centos7lmi --user=root --directory=/tmp ./install_centos_1.sh
schroot --chroot=centos7lmi --user=root --directory=/tmp ./install_centos_2.sh
# Copy log files that may be useful for tracking down problems with
diff --git a/install_centos_1.sh b/install_centos_1.sh
index 418af78..f539672 100755
--- a/install_centos_1.sh
+++ b/install_centos_1.sh
@@ -38,3 +38,10 @@ yum --assumeyes install debootstrap schroot
# END ./lmi_setup_10.sh
./lmi_setup_11.sh
+
+# Experimental--see
+# https://lists.nongnu.org/archive/html/lmi/2020-05/msg00040.html
+# for caveats.
+du -sb /srv/chroot/"${CHRTNAME}"/srv/cache_for_lmi || echo "Okay."
+mkdir -p /srv/chroot/"${CHRTNAME}"/srv/cache_for_lmi
+mount --bind /srv/cache_for_lmi /srv/chroot/"${CHRTNAME}"/srv/cache_for_lmi
- [lmi-commits] [lmi] master 8054eeb 09/18: Don't create chroot's own /var before running debootstrap, (continued)
- [lmi-commits] [lmi] master 8054eeb 09/18: Don't create chroot's own /var before running debootstrap, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 2b00752 10/18: Note some questions for later investigation, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 7f0f5fa 04/18: Announce the installation of each chroot, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 5134131 02/18: Rearrange some independent script blocks, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master a779e6f 05/18: Give all group users access to chroot, on debian host, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master bfd3dae 07/18: Regularize debootstrap invocations, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 0d9cf29 08/18: Clarify documentation, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 455d59e 11/18: Rearrange some script blocks, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 4a7d356 12/18: Extract marked blocks into sub-scripts #11, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 294b7bb 13/18: Let certain commands fail for the moment, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master d496c75 15/18: Move some more script blocks,
Greg Chicares <=
- [lmi-commits] [lmi] master dc2ccdb 14/18: Rearrange independent script blocks, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master af65430 16/18: Remove a redundant block, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 3776d3f 17/18: Move one script's contents into another, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 8bc4085 18/18: Remove a script that is no longer wanted, Greg Chicares, 2020/05/21