[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 606a0cf 09/10: Reuse an existing debootstrap
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 606a0cf 09/10: Reuse an existing debootstrap tarball if available |
Date: |
Thu, 26 Sep 2019 09:40:22 -0400 (EDT) |
branch: master
commit 606a0cf44a00c541f4bf97a5115637d2f92f9378
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Reuse an existing debootstrap tarball if available
---
lmi_setup_10.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lmi_setup_10.sh b/lmi_setup_10.sh
index 9774375..a1945b5 100755
--- a/lmi_setup_10.sh
+++ b/lmi_setup_10.sh
@@ -34,4 +34,8 @@ apt-get install schroot debootstrap
# Download all OS essentials. This step may be done a single time, and
# its tarball used repeatedly. The target ('/tmp/eraseme') directory
# will be created and erased automatically.
-debootstrap --arch=amd64 --make-tarball=/var/cache/"${CODENAME}"_bootstrap.tar
"${CODENAME}" /tmp/eraseme
+
+if [ ! -e /var/cache/"${CODENAME}"_bootstrap.tar ]; then
+ debootstrap --arch=amd64
--make-tarball=/var/cache/"${CODENAME}"_bootstrap.tar \
+ "${CODENAME}" /tmp/eraseme
+fi
- [lmi-commits] [lmi] master updated (6557d30 -> 5ae814c), Greg Chicares, 2019/09/26
- [lmi-commits] [lmi] master 6bde648 05/10: Print zsh script name when shellcheck fails, Greg Chicares, 2019/09/26
- [lmi-commits] [lmi] master dba418b 02/10: Source 'lmi_setup_inc' in every other 'lmi_setup*' script, Greg Chicares, 2019/09/26
- [lmi-commits] [lmi] master 13972c4 06/10: Enable verbose tracing in 'lmi_setup*.sh', Greg Chicares, 2019/09/26
- [lmi-commits] [lmi] master 8838b01 07/10: Make sure each 'lmi_setup*' script is run in the right environment, Greg Chicares, 2019/09/26
- [lmi-commits] [lmi] master 96e0911 08/10: Prefer https to http, Greg Chicares, 2019/09/26
- [lmi-commits] [lmi] master 5ae814c 10/10: Prepare to test scripted chroot creation, Greg Chicares, 2019/09/26
- [lmi-commits] [lmi] master c1cbb7f 04/10: Start writing a master 'lmi_setup*' script to call the others, Greg Chicares, 2019/09/26
- [lmi-commits] [lmi] master 890f9e3 01/10: Augment redhat notes, Greg Chicares, 2019/09/26
- [lmi-commits] [lmi] master 606a0cf 09/10: Reuse an existing debootstrap tarball if available,
Greg Chicares <=
- [lmi-commits] [lmi] master 8e2ced7 03/10: Improve 'lmi_setup_*.sh', notably resolving shellcheck issues, Greg Chicares, 2019/09/26