[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 04cbbca 4/8: Let 'set -e' halt on bind-mount
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 04cbbca 4/8: Let 'set -e' halt on bind-mount failure |
Date: |
Sun, 6 Oct 2019 19:48:10 -0400 (EDT) |
branch: master
commit 04cbbcac15406955095919fcab9a184d7f85723a
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Let 'set -e' halt on bind-mount failure
---
install_centos.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/install_centos.sh b/install_centos.sh
index 72bb198..3f0e221 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -46,7 +46,7 @@ rinse --arch amd64 --distribution centos-7 \
mkdir -p /var/cache/centos_lmi
# 'rbind' seems necessary because centos uses subdirs
-mount --rbind /var/cache/centos_lmi /srv/chroot/centos7lmi/var/cache/yum ||
echo "Oops"
+mount --rbind /var/cache/centos_lmi /srv/chroot/centos7lmi/var/cache/yum
cat >/srv/chroot/centos7lmi/tmp/setup0.sh <<EOF
#!/bin/sh
@@ -117,9 +117,9 @@ type=plain
EOF
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"
+mount --bind /srv/cache_for_lmi
/srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/cache_for_lmi
-mount --bind /var/cache/"${CODENAME}"
/srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/var/cache/apt/archives || echo
"Oops"
+mount --bind /var/cache/"${CODENAME}"
/srv/chroot/centos7lmi/srv/chroot/"${CHRTNAME}"/var/cache/apt/archives
cat >/srv/chroot/centos7lmi/tmp/setup1.sh <<EOF
#!/bin/sh
- [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 <=
- [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, 2019/10/06
- [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