[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master bfd0cf7 01/10: Use --bind when --rbind is unn
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master bfd0cf7 01/10: Use --bind when --rbind is unnecessary |
Date: |
Thu, 28 May 2020 20:34:08 -0400 (EDT) |
branch: master
commit bfd0cf730cdaeace8c3c5b697fa1e4e0f9beed3b
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Use --bind when --rbind is unnecessary
--rbind is needed only for submounts, not for subdirectories.
---
install_centos.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/install_centos.sh b/install_centos.sh
index d623225..ce39a91 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -112,8 +112,7 @@ mkdir -p /var/cache/centos_lmi
# There are probably a few directories here, with no regular files.
du -sb /srv/chroot/centos7lmi/var/cache/yum || echo "Oops: rinse didn't
create cache"
mkdir -p /srv/chroot/centos7lmi/var/cache/yum
-# 'rbind' seems necessary because centos uses subdirs
-mount --rbind /var/cache/centos_lmi /srv/chroot/centos7lmi/var/cache/yum
+mount --bind /var/cache/centos_lmi /srv/chroot/centos7lmi/var/cache/yum
echo Installed centos chroot.
- [lmi-commits] [lmi] master updated (9ed6f1d -> 565e243), Greg Chicares, 2020/05/28
- [lmi-commits] [lmi] master bfd0cf7 01/10: Use --bind when --rbind is unnecessary,
Greg Chicares <=
- [lmi-commits] [lmi] master 47295e3 04/10: Reduce gratuitous differences between scripts, Greg Chicares, 2020/05/28
- [lmi-commits] [lmi] master 6d1ca69 05/10: Rename a script, Greg Chicares, 2020/05/28
- [lmi-commits] [lmi] master 2566530 02/10: Improve documentation, Greg Chicares, 2020/05/28
- [lmi-commits] [lmi] master 565e243 10/10: Write log files elsewhere, Greg Chicares, 2020/05/28
- [lmi-commits] [lmi] master 5a6c188 07/10: Extract blocks into sub-scripts #01, Greg Chicares, 2020/05/28
- [lmi-commits] [lmi] master a13e9f6 08/10: Extract block into sub-script #00 centos, Greg Chicares, 2020/05/28
- [lmi-commits] [lmi] master b290253 09/10: Expunge a redundant line, Greg Chicares, 2020/05/28
- [lmi-commits] [lmi] master 5b452d6 03/10: Rearrange some independent script blocks, Greg Chicares, 2020/05/28
- [lmi-commits] [lmi] master 7482438 06/10: Always wget all lmi_setup_*, Greg Chicares, 2020/05/28