lmi-commits
[Top][All Lists]
Advanced

[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.
 



reply via email to

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