[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 455d59e 11/18: Rearrange some script blocks
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 455d59e 11/18: Rearrange some script blocks |
Date: |
Thu, 21 May 2020 19:43:12 -0400 (EDT) |
branch: master
commit 455d59e35bb8d4380c53de7824eb605992fd220a
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Rearrange some script blocks
Moved mounts for /srv/cache_for_lmi/ into a new block #13 for now.
---
install_centos.sh | 16 ++--------------
install_centos_1.sh | 12 ++++++++++++
install_redhat.sh | 10 ++++++----
3 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/install_centos.sh b/install_centos.sh
index 21334ea..0dd0dc5 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -139,19 +139,7 @@ cp -a ~/.zshrc
/srv/chroot/centos7lmi/home/"${NORMAL_USER}"/.zshrc
# If that works well, then treat vim configuration the same way,
# here and elsewhere.
-# BEGIN ./lmi_setup_11.sh
-cat >/srv/chroot/centos7lmi/etc/schroot/chroot.d/"${CHRTNAME}".conf <<EOF
-[${CHRTNAME}]
-aliases=lmi
-description=debian ${CODENAME} cross build ${CHRTVER}
-directory=/srv/chroot/${CHRTNAME}
-users=${CHROOT_USERS}
-groups=${NORMAL_GROUP}
-root-groups=root
-shell=/bin/zsh
-type=plain
-EOF
-
+# 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
@@ -160,7 +148,7 @@ mount --bind /srv/cache_for_lmi
/srv/chroot/centos7lmi/srv/cache_for_lmi
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_11.sh
+# END ./lmi_setup_13.sh
schroot --chroot=centos7lmi --user=root --directory=/tmp ./install_centos_2.sh
diff --git a/install_centos_1.sh b/install_centos_1.sh
index 4fbec9c..956ffa0 100755
--- a/install_centos_1.sh
+++ b/install_centos_1.sh
@@ -61,6 +61,18 @@ debootstrap --arch=amd64 --cache-dir="${CACHEDIR}" \
# This command should produce no output:
grep --invert-match '^I:' "${CHRTNAME}"-debootstrap-log
+cat >/etc/schroot/chroot.d/"${CHRTNAME}".conf <<EOF
+[${CHRTNAME}]
+aliases=lmi
+description=debian ${CODENAME} cross build ${CHRTVER}
+directory=/srv/chroot/${CHRTNAME}
+users=${CHROOT_USERS}
+groups=${NORMAL_GROUP}
+root-groups=root
+shell=/bin/zsh
+type=plain
+EOF
+
# Experimentally show whether anything's already here:
du -sb /srv/chroot/"${CHRTNAME}"/var/cache/apt/archives
# Bind-mount apt archives for the chroot's debian release. Do this:
diff --git a/install_redhat.sh b/install_redhat.sh
index 2b3a9ef..8b629e6 100755
--- a/install_redhat.sh
+++ b/install_redhat.sh
@@ -138,14 +138,16 @@ du -sb /srv/chroot/"${CHRTNAME}"/var/cache/apt/archives
# - while not chrooted, so that the host filesystem is accessible.
mount --bind "${CACHEDIR}" /srv/chroot/"${CHRTNAME}"/var/cache/apt/archives
+echo Installed debian "${CODENAME}" chroot.
+# END ./lmi_setup_11.sh
+# ./lmi_setup_11.sh
+
+# BEGIN ./lmi_setup_13.sh
mkdir -p /srv/cache_for_lmi
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
-
-echo Installed debian "${CODENAME}" chroot.
-# END ./lmi_setup_11.sh
-# ./lmi_setup_11.sh
+# END ./lmi_setup_13.sh
cp -a lmi_setup_*.sh /tmp/schroot_env /srv/chroot/${CHRTNAME}/tmp
schroot --chroot=${CHRTNAME} --user=root --directory=/tmp
./lmi_setup_20.sh
- [lmi-commits] [lmi] master 932c27b 01/18: Consolidate chroot step #10, (continued)
- [lmi-commits] [lmi] master 932c27b 01/18: Consolidate chroot step #10, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 8d2c26b 03/18: Fold unborn chroot step #12 into step #20, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 90411ba 06/18: Use a variable to reduce literal repetition, Greg Chicares, 2020/05/21
- [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 <=
- [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, 2020/05/21
- [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