lmi-commits
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]