summaryrefslogtreecommitdiff
path: root/scripts/build/bootstrap_cdebootstrap
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-07-01 16:24:22 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-07-01 16:27:12 +0200
commitb77349b8ce2a9b6b2789424f189379e01ed63551 (patch)
tree74480db00617b2f8a57065089f02bde03191bdda /scripts/build/bootstrap_cdebootstrap
parenteab1da72edf4d4ad40ef5b6b67bca5930ad80209 (diff)
downloadvyos-live-build-b77349b8ce2a9b6b2789424f189379e01ed63551.tar.gz
vyos-live-build-b77349b8ce2a9b6b2789424f189379e01ed63551.zip
Moving caching out of bootstrap_{c,}debootstrap to own helper for future unification with chroot caches helper.
Diffstat (limited to 'scripts/build/bootstrap_cdebootstrap')
-rwxr-xr-xscripts/build/bootstrap_cdebootstrap18
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/build/bootstrap_cdebootstrap b/scripts/build/bootstrap_cdebootstrap
index ea72ccfd5..7df180fab 100755
--- a/scripts/build/bootstrap_cdebootstrap
+++ b/scripts/build/bootstrap_cdebootstrap
@@ -104,14 +104,6 @@ def main():
print('I: use \'lb clean\' to clean up a previously incomplete build')
sys.exit(1)
- # stage cache
- elif os.path.exists('cache/bootstrap'):
- if verbose:
- print('I: Copying cache/bootstrap to chroot')
-
- # Note: copy instead of move to make cache survive incomplete build
- #shutil.copytree('cache/bootstrap', 'chroot') # FIXME: copytree() doesn't work with device files :(
- cp = subprocess.call('cp -a cache/bootstrap chroot', shell=True)
# packages cache
elif glob.glob('cache/packages.bootstrap/*.deb'):
if verbose:
@@ -154,16 +146,6 @@ def main():
cdebootstrap = subprocess.call('/usr/bin/cdebootstrap ' + cdebootstrap_options, shell=True)
- # stage cache
- if (os.path.exists('chroot')) and (not os.path.exists('cache/bootstrap')):
- if verbose:
- print('I: Copying chroot to cache/bootstrap')
-
- # Note: copy instead of move to keep stage
- #shutil.copytree('chroot', 'cache/bootstrap') # FIXME: copytree() doesn't work with device files :(
- os.makedirs('cache', exist_ok=True)
- cp = subprocess.call('cp -a chroot cache/bootstrap', shell=True)
-
## stagefile
os.makedirs('.build', exist_ok=True)
open('.build/bootstrap', 'w').close()