[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master c6802d2 2/8: Expunge comments related to the
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master c6802d2 2/8: Expunge comments related to the resolved circular-mounts issue |
Date: |
Sun, 6 Oct 2019 19:48:10 -0400 (EDT) |
branch: master
commit c6802d21c3f52218f67818703026f21444107df0
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Expunge comments related to the resolved circular-mounts issue
"Comments" naturally include block comments like:
cat >/dev/null <<EOF
This is a comment
block.
EOF
---
install_centos.sh | 46 ----------------------------------------------
1 file changed, 46 deletions(-)
diff --git a/install_centos.sh b/install_centos.sh
index 01300e3..075e981 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -144,7 +144,6 @@ root-groups=root
type=plain
EOF
-# This seems to work perfectly:
mkdir /srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/cache_for_lmi
mount --bind /srv/cache_for_lmi
/srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/cache_for_lmi || echo "Oops"
findmnt --kernel -n --list | grep '\[' |sort
@@ -181,14 +180,6 @@ chmod +x lmi_setup_*.sh
set -vx
-# Just get rid of this stanza?
-# mkdir -p /var/cache/"${CODENAME}"
-# mountpoint /var/cache/apt/archives || mount --bind /var/cache/"${CODENAME}"
/srv/chroot/"${CHRTNAME}"/var/cache/apt/archives || echo "Oops"
-# mountpoint: /var/cache/apt/archives: No such file or directory
-# This stanza (now suppressed) looks like a possible cause of the
-# circular bind mounts demonstrated below (search for "eraseme-findmnt"):
-# + mount --bind /var/cache/bullseye
/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
-
# At this point, the debian chroot's /var/cache/apt/archives/
# directory exists, but is empty:
du -sb /srv/chroot/"${CHRTNAME}"/var/cache/apt/archives
@@ -218,40 +209,3 @@ echo "Finished: $stamp1"
seconds=$(($(date '+%s' -d "$stamp1") - $(date '+%s' -d "$stamp0")))
elapsed=$(date -u -d @"$seconds" +'%H:%M:%S')
echo "Elapsed: $elapsed"
-
-cat >/tmp/eraseme-findmnt <<EOF
-/root[0]#findmnt --kernel -n --list | grep '\[' |sort
-/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
/dev/sdb5[/srv/chroot/centos7lmi/var/cache/bullseye] ext4
rw,relatime,errors=remount-ro
-/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
/dev/sdb5[/var/cache/bullseye] ext4
rw,relatime,errors=remount-ro
-/var/cache/bullseye
/dev/sdb5[/srv/chroot/centos7lmi/var/cache/bullseye] ext4
rw,relatime,errors=remount-ro
-/root[0]#
-/root[0]#du -sb
/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
-593658728
/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
-/root[0]#du -sb /srv/chroot/centos7lmi/var/cache/bullseye
-593658728 /srv/chroot/centos7lmi/var/cache/bullseye
-/root[0]#du -sb /var/cache/bullseye
-593658728 /var/cache/bullseye
-/root[0]#
-/root[0]#umount /var/cache/bullseye
-/root[0]#du -sb /var/cache/bullseye
-682609842 /var/cache/bullseye
-/root[0]#
-/root[0]#findmnt --kernel -n --list | grep '\[' |sort
-/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
/dev/sdb5[/var/cache/bullseye] ext4 rw,relatime,errors=remount-ro
-/root[0]#du -sb
/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
-682609842
/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
-/root[0]#du -sb /srv/chroot/centos7lmi/var/cache/bullseye
-593658728 /srv/chroot/centos7lmi/var/cache/bullseye
-/root[0]#
-/root[0]#du -sb
/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
-682609842
/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
-/root[0]#du -sb /srv/chroot/centos7lmi/var/cache/bullseye
-593658728 /srv/chroot/centos7lmi/var/cache/bullseye
-/root[0]#umount
/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
-/root[0]#du -sb
/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
-49157474
/srv/chroot/centos7lmi/srv/chroot/lmi_bullseye_1/var/cache/apt/archives
-/root[0]#du -sb /srv/chroot/centos7lmi/var/cache/bullseye
-593658728 /srv/chroot/centos7lmi/var/cache/bullseye
-/root[0]#du -sb /var/cache/bullseye
-682609842 /var/cache/bullseye
-EOF
- [lmi-commits] [lmi] master updated (b80b1ae -> bd24b46), Greg Chicares, 2019/10/06
- [lmi-commits] [lmi] master 04cbbca 4/8: Let 'set -e' halt on bind-mount failure, Greg Chicares, 2019/10/06
- [lmi-commits] [lmi] master 954ab11 7/8: Use 'yum' to install "EPEL", Greg Chicares, 2019/10/06
- [lmi-commits] [lmi] master c6802d2 2/8: Expunge comments related to the resolved circular-mounts issue,
Greg Chicares <=
- [lmi-commits] [lmi] master 282907b 5/8: List handy commands to destroy a centos chroot, Greg Chicares, 2019/10/06
- [lmi-commits] [lmi] master d8d46c3 6/8: Comment out 'scl' stuff, Greg Chicares, 2019/10/06
- [lmi-commits] [lmi] master bd24b46 8/8: Install 'debootstrap', not 'debootstrap.noarch', Greg Chicares, 2019/10/06
- [lmi-commits] [lmi] master 4cd422c 1/8: Prevent 'findmnt' from failing in a 'set -e' script, Greg Chicares, 2019/10/06
- [lmi-commits] [lmi] master 71e8adb 3/8: Remove code to trace bind-mount activity, Greg Chicares, 2019/10/06