[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 69eccfd 2/3: Destroy centos chroot before rec
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 69eccfd 2/3: Destroy centos chroot before recreating it |
Date: |
Thu, 10 Oct 2019 19:40:10 -0400 (EDT) |
branch: master
commit 69eccfdc08d4ce46a6a45337cfeefa69fcbd74e9
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Destroy centos chroot before recreating it
'install_centos.sh' is designed only to emulate creating a debian chroot
on a redhat server. The centos chroot is not otherwise desired.
---
install_centos.sh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/install_centos.sh b/install_centos.sh
index 16e3b55..48233fd 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -21,13 +21,13 @@
# email: <address@hidden>
# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
-# To destroy a chroot from a prior run:
-# grep centos /proc/mounts | cut -f2 -d" " | xargs umount
-# rm -rf /srv/chroot/centos7lmi
-# rm /etc/schroot/chroot.d/centos7lmi.conf
-
. ./lmi_setup_inc.sh
+# First, destroy any chroot left by a prior run.
+grep centos /proc/mounts | cut -f2 -d" " | xargs umount
+rm -rf /srv/chroot/centos7lmi
+rm /etc/schroot/chroot.d/centos7lmi.conf
+
set -evx
stamp0=$(date -u +'%Y-%m-%dT%H:%M:%SZ')