[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 6236aea 03/10: Rationalize order of unmountin
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 6236aea 03/10: Rationalize order of unmounting |
Date: |
Fri, 26 Jun 2020 08:05:19 -0400 (EDT) |
branch: master
commit 6236aeacaddfed955983a36e40efb3673f42cb97
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Rationalize order of unmounting
Unmount lmi's "identity" mounts first because they're the least
essential.
---
lmi_setup_02.sh | 2 +-
lmi_setup_02c.sh | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lmi_setup_02.sh b/lmi_setup_02.sh
index 5594227..f81439a 100755
--- a/lmi_setup_02.sh
+++ b/lmi_setup_02.sh
@@ -69,8 +69,8 @@ assert_not_chrooted
# | column -t
# along with '-r' because '-l' does a poor job of columnization.
-umount /srv/chroot/"${CHRTNAME}"/var/cache/apt/archives || true
umount /srv/chroot/"${CHRTNAME}"/srv/cache_for_lmi || true
+umount /srv/chroot/"${CHRTNAME}"/var/cache/apt/archives || true
umount /srv/chroot/"${CHRTNAME}"/dev/pts || true
umount /srv/chroot/"${CHRTNAME}"/proc || true
diff --git a/lmi_setup_02c.sh b/lmi_setup_02c.sh
index 4c23584..ba1223c 100755
--- a/lmi_setup_02c.sh
+++ b/lmi_setup_02c.sh
@@ -29,13 +29,13 @@ set -evx
assert_su
assert_not_chrooted
-umount /srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/var/cache/apt/archives
|| true
umount /srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/srv/cache_for_lmi
|| true
+umount /srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/var/cache/apt/archives
|| true
umount /srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/dev/pts
|| true
umount /srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/proc
|| true
-umount /srv/chroot/centos7lmi/var/cache/yum || true
-umount /srv/chroot/centos7lmi/var/cache/"${CODENAME}"|| true
umount /srv/chroot/centos7lmi/srv/cache_for_lmi || true
+umount /srv/chroot/centos7lmi/var/cache/"${CODENAME}"|| true
+umount /srv/chroot/centos7lmi/var/cache/yum || true
umount /srv/chroot/centos7lmi/dev/pts || true
umount /srv/chroot/centos7lmi/proc || true
- [lmi-commits] [lmi] master updated (b745ce9 -> 6fe3ab7), Greg Chicares, 2020/06/26
- [lmi-commits] [lmi] master 5a787a9 04/10: Merge centos package caches, Greg Chicares, 2020/06/26
- [lmi-commits] [lmi] master 5777e42 08/10: Don't mount /proc or /dev/pts if already mounted, Greg Chicares, 2020/06/26
- [lmi-commits] [lmi] master 5a42ec0 06/10: Fix defect introduced 20200528T1107Z: wrong dependency order, Greg Chicares, 2020/06/26
- [lmi-commits] [lmi] master 501ce73 05/10: Merge all chroot package caches, Greg Chicares, 2020/06/26
- [lmi-commits] [lmi] master ff91e9b 07/10: Use schroot 'directory' type instead of deprecated 'plain', Greg Chicares, 2020/06/26
- [lmi-commits] [lmi] master 13805c4 01/10: Make a command handier, Greg Chicares, 2020/06/26
- [lmi-commits] [lmi] master 2c31fee 09/10: Destroy chroots more carefully, Greg Chicares, 2020/06/26
- [lmi-commits] [lmi] master 026c587 02/10: Replace an improperly hardcoded value with a variable, Greg Chicares, 2020/06/26
- [lmi-commits] [lmi] master 6236aea 03/10: Rationalize order of unmounting,
Greg Chicares <=
- [lmi-commits] [lmi] master 6fe3ab7 10/10: Customize /etc/schroot/lmi_profile/fstab, Greg Chicares, 2020/06/26