lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 6b18d9c: Mount a centos pass-through cache di


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 6b18d9c: Mount a centos pass-through cache directory
Date: Wed, 6 May 2020 08:00:37 -0400 (EDT)

branch: master
commit 6b18d9ca09d3d5f5bb6b6db971614b93fae17dd9
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Mount a centos pass-through cache directory
---
 install_centos.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/install_centos.sh b/install_centos.sh
index a5c460e..921bde9 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -217,7 +217,23 @@ shell=/bin/zsh
 type=plain
 EOF
 
+# 'cache_for_lmi' is a subdirectory of the root, in a guest used for
+# building lmi; but it is a subdirectory of /srv in a host used for
+# creating a guest for building lmi, because a corporation that owns
+# a host server might not allow a subdirectory of the system root to
+# be created.
+#
+# This centos chroot is a guest of an underlying host, but its purpose
+# is to emulate such a host. Therefore, its 'cache_for_lmi' directory
+# is a subdirectory of its /srv.
+#
+# The same host directory is mounted in the ultimate debian guest here
+# and now, only because that's so readily done.
+
 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
 du   -sb /srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/cache_for_lmi || echo 
"Okay."
 mkdir -p /srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/cache_for_lmi
 mount --bind /srv/cache_for_lmi 
/srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/cache_for_lmi



reply via email to

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