lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 4e05823: Cache deboostrap tarball (VZ)


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4e05823: Cache deboostrap tarball (VZ)
Date: Fri, 23 Sep 2016 13:43:56 +0000 (UTC)

branch: master
commit 4e05823ef49dee22f850a0f22539e9a52ce76654
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Cache deboostrap tarball (VZ)
    
    See:
      http://lists.nongnu.org/archive/html/lmi/2016-09/msg00001.html
---
 README.schroot |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/README.schroot b/README.schroot
index d589843..4faf3a0 100644
--- a/README.schroot
+++ b/README.schroot
@@ -24,15 +24,17 @@
 
 # Starting in a normal terminal, enter a root shell.
 su
-mkdir -p /srv/chroot/cross3
 apt-get update
 apt-get install schroot debootstrap
 
-# If the connection hiccups, 'debootstrap' doesn't seem to resume,
-# so keep trying until it succeeds.
+# 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/jessie_bootstrap.tar jessie 
/tmp/eraseme
 
-debootstrap --arch=amd64 jessie /srv/chroot/cross3 
http://httpredir.debian.org/debian
-while [ $? -ne 0 ]; do !!; done
+# Unpack the OS tarball into the particular chroot being created.
+mkdir -p /srv/chroot/cross3
+debootstrap --arch=amd64 --unpack-tarball=/var/cache/jessie_bootstrap.tar 
jessie /srv/chroot/cross3
 
 cat >/etc/schroot/chroot.d/cross3.conf <<\EOF
 [cross3]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]